/* ================================================================
   NEXUS DIGITAL -- Apple-Inspired Design System
   Pristine. Restrained. Intentional.
   ================================================================ */

/* ----------------------------------------------------------------
   0. DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-primary:       #000000;
  --bg-elevated:      #1D1D1F;
  --bg-secondary:     #F5F5F7;
  --bg-white:         #FFFFFF;

  /* Text */
  --text-primary:     #F5F5F7;
  --text-secondary:   #86868B;
  --text-tertiary:    #6E6E73;
  --text-dark:        #1D1D1F;
  --text-on-light:    #1D1D1F;

  /* Accent -- single blue, used with extreme restraint */
  --accent:           #2997FF;
  --accent-hover:     #0077ED;
  --accent-link:      #2997FF;
  --accent-button:    #0071E3;

  /* Structural */
  --separator:        rgba(255, 255, 255, 0.08);
  --separator-light:  #D2D2D7;
  --footer-link:      #424245;

  /* Glass */
  --glass-bg:         rgba(29, 29, 31, 0.72);
  --glass-blur:       saturate(180%) blur(20px);

  /* Typography */
  --font:             -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-hero:        clamp(48px, 5vw + 1rem, 96px);
  --font-section:     clamp(32px, 3.5vw + 1rem, 64px);
  --font-tile:        clamp(28px, 2.5vw + 1rem, 48px);
  --font-eyebrow:     clamp(17px, 1vw + 0.5rem, 24px);
  --font-body-lg:     clamp(17px, 0.5vw + 0.75rem, 21px);
  --font-body:        17px;
  --font-caption:     14px;
  --font-footnote:    12px;

  /* Spacing */
  --max-width:        980px;
  --max-width-wide:   1200px;
  --gutter:           22px;
  --section-padding:  clamp(60px, 8vw, 120px);
  --nav-height:       52px;

  /* Radius */
  --radius-sm:        10px;
  --radius-md:        14px;
  --radius-lg:        20px;
  --radius-pill:      980px;

  /* Shadows */
  --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md:        0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg:        0 8px 32px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --ease:             cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast:    0.2s;
  --duration:         0.3s;
  --duration-medium:  0.5s;
  --duration-slow:    0.7s;
}


/* ----------------------------------------------------------------
   1. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--font-body);
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection {
  background: rgba(41, 151, 255, 0.3);
  color: #fff;
}


/* ----------------------------------------------------------------
   2. TYPOGRAPHY
   ---------------------------------------------------------------- */
.t-hero {
  font-size: var(--font-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.t-section {
  font-size: var(--font-section);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.009em;
  color: var(--text-primary);
}

.t-tile {
  font-size: var(--font-tile);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.003em;
}

.t-eyebrow {
  font-size: var(--font-eyebrow);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: 0.009em;
  color: var(--text-secondary);
}

.t-body-lg {
  font-size: var(--font-body-lg);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0.011em;
  color: var(--text-secondary);
}

.t-body {
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.022em;
}

.t-caption {
  font-size: var(--font-caption);
  font-weight: 400;
  line-height: 1.43;
  color: var(--text-tertiary);
}

.t-footnote {
  font-size: var(--font-footnote);
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
}


/* ----------------------------------------------------------------
   3. LAYOUT
   ---------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section--light {
  background: var(--bg-secondary);
  color: var(--text-on-light);
}

.section--light .t-hero,
.section--light .t-section,
.section--light .t-tile {
  color: var(--text-dark);
}

.section--light .t-body-lg,
.section--light .t-eyebrow {
  color: var(--text-tertiary);
}

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

.section--white {
  background: var(--bg-white);
  color: var(--text-on-light);
}

.section--white .t-hero,
.section--white .t-section,
.section--white .t-tile {
  color: var(--text-dark);
}

.section--white .t-body-lg,
.section--white .t-eyebrow {
  color: var(--text-tertiary);
}

.text-center { text-align: center; }


/* ----------------------------------------------------------------
   4. NAVIGATION
   ---------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 9999;
  transition: background var(--duration) ease,
              backdrop-filter var(--duration) ease;
}

.navbar--glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

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

.navbar__logo {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.navbar__logo span {
  color: var(--accent);
}

.navbar__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar__links a {
  font-size: var(--font-footnote);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  opacity: 0.8;
  transition: opacity var(--duration) ease;
}

.navbar__links a:hover,
.navbar__links a.active {
  opacity: 1;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: 10001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--duration) ease, opacity var(--duration) ease;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium) ease;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay a {
  font-size: var(--font-tile);
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--duration) ease;
}

.menu-overlay a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .navbar__links { display: none; }
}


/* ----------------------------------------------------------------
   5. BUTTONS & LINKS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.022em;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: background var(--duration) ease,
              color var(--duration) ease,
              opacity var(--duration) ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration) ease;
}

.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent-button);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent-link);
  border: 1.5px solid var(--accent-link);
  padding: 10.5px 22.5px;
}

.btn-outline:hover {
  background: var(--accent-link);
  color: #fff;
}

.btn-sm {
  font-size: var(--font-caption);
  padding: 8px 18px;
}

/* Apple-style text link with chevron */
.link-cta {
  font-size: var(--font-body-lg);
  font-weight: 400;
  color: var(--accent-link);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration) ease;
}

.link-cta:hover {
  gap: 8px;
}

.link-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* On light sections */
.section--light .btn-outline,
.section--white .btn-outline {
  color: #0066CC;
  border-color: #0066CC;
}

.section--light .btn-outline:hover,
.section--white .btn-outline:hover {
  background: #0066CC;
  color: #fff;
}

.section--light .link-cta,
.section--white .link-cta {
  color: #0066CC;
}


/* ----------------------------------------------------------------
   6. HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: var(--gutter);
}

.hero__subtitle {
  margin-top: 12px;
}

.hero__cta-group {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero layers for pinning */
.hero__layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
  z-index: 2;
}

.hero__layer--hidden { opacity: 0; }

/* Subtle gradient orb for depth */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.hero__orb--blue {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -20%;
  right: -10%;
}

.hero__orb--dim {
  width: 400px;
  height: 400px;
  background: #86868B;
  bottom: -15%;
  left: -5%;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: var(--font-footnote);
}

.scroll-hint__bar {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-secondary), transparent);
  animation: scroll-fade 2s ease-in-out infinite;
}

@keyframes scroll-fade {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.2); }
}


/* ----------------------------------------------------------------
   7. IMAGES & PARALLAX
   ---------------------------------------------------------------- */
.img-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.img-reveal {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.img-reveal.is-visible img {
  transform: scale(1);
}


/* ----------------------------------------------------------------
   8. CARDS & GLASS
   ---------------------------------------------------------------- */
.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-medium) var(--ease),
              box-shadow var(--duration-medium) var(--ease);
}

.card:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg);
}

.card--glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--separator);
}

.card__body {
  padding: 36px 32px;
}

.card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.card:hover .card__img img {
  transform: scale(1.05);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(41, 151, 255, 0.1);
  color: var(--accent);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0.011em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.47;
}

/* Light section cards */
.section--light .card,
.section--white .card {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.section--light .card:hover,
.section--white .card:hover {
  box-shadow: var(--shadow-md);
}

.section--light .card h3,
.section--white .card h3 {
  color: var(--text-dark);
}

.section--light .card p,
.section--white .card p {
  color: var(--text-tertiary);
}

/* Numbered label on service cards */
.card__number {
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 20px;
  right: 24px;
  line-height: 1;
}

.section--light .card__number,
.section--white .card__number {
  color: rgba(0, 0, 0, 0.04);
}


/* ----------------------------------------------------------------
   9. SERVICE GRID
   ---------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.service-card {
  position: relative;
}


/* ----------------------------------------------------------------
   10. CASE STUDIES
   ---------------------------------------------------------------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.case-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.case-card__bg {
  position: absolute;
  inset: 0;
  transition: transform var(--duration-slow) var(--ease);
}

.case-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card:hover .case-card__bg {
  transform: scale(1.04);
}

.case-card__content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.case-card__tag {
  font-size: var(--font-footnote);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}

.case-card__title {
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.14;
  color: #fff;
}


/* ----------------------------------------------------------------
   11. STATS
   ---------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

@media (max-width: 735px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-item {
  padding: 40px 20px;
}

.stat__number {
  font-size: var(--font-tile);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: var(--font-footnote);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.section--light .stat__number,
.section--white .stat__number {
  color: var(--text-dark);
}


/* ----------------------------------------------------------------
   12. TESTIMONIAL
   ---------------------------------------------------------------- */
.testimonial {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  padding: 40px;
}

.testimonial__quote {
  font-size: var(--font-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial__divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 24px;
  border-radius: 1px;
}

.testimonial__author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.testimonial__role {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  margin-top: 2px;
}


/* ----------------------------------------------------------------
   13. BENTO GRID (Blog)
   ---------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 16px;
  grid-template-areas:
    "hero   hero   side1  side1"
    "hero   hero   side2  side3"
    "bot1   bot2   bot2   side3";
}

.bento-hero  { grid-area: hero;  min-height: 400px; }
.bento-side1 { grid-area: side1; }
.bento-side2 { grid-area: side2; }
.bento-side3 { grid-area: side3; }
.bento-bot1  { grid-area: bot1;  }
.bento-bot2  { grid-area: bot2;  }

@media (max-width: 1068px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "hero   hero"
      "side1  side1"
      "side2  side3"
      "bot1   bot2";
  }
}

@media (max-width: 735px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "hero" "side1" "side2" "side3" "bot1" "bot2";
  }
  .bento-hero { min-height: 280px; }
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  min-height: 220px;
  cursor: pointer;
  transition: transform var(--duration-medium) var(--ease);
}

.bento-card:hover { transform: scale(1.015); }

.bento-card__bg {
  position: absolute;
  inset: 0;
  transition: transform var(--duration-slow) var(--ease);
}

.bento-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card:hover .bento-card__bg { transform: scale(1.04); }

.bento-card__content {
  position: relative;
  z-index: 2;
}

.bento-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.bento-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.bento-card__title {
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.bento-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-card__date {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
}


/* ----------------------------------------------------------------
   14. BLOG POST
   ---------------------------------------------------------------- */
.post-hero {
  padding-top: calc(var(--nav-height) + var(--section-padding));
  padding-bottom: 48px;
  text-align: center;
}

.post-hero__meta {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: var(--font-caption);
}

.post-content {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.post-content h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
}

.post-content h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.24;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.post-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.58;
  font-size: 17px;
}

.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-block: 28px;
  font-style: italic;
  color: var(--text-secondary);
  font-size: var(--font-body-lg);
}

.post-content ul, .post-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
  list-style: disc;
  color: var(--text-secondary);
}

.post-content ol li { list-style: decimal; }

/* Reading progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10000;
  will-change: transform;
}


/* ----------------------------------------------------------------
   15. CONTACT / FORM
   ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 735px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: var(--font-caption);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color var(--duration) ease, box-shadow var(--duration) ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.12);
}

.form-input::placeholder { color: var(--text-tertiary); }
textarea.form-input { min-height: 120px; resize: vertical; }

/* Light section forms */
.section--light .form-input,
.section--white .form-input {
  background: var(--bg-white);
  border-color: var(--separator-light);
  color: var(--text-dark);
}

.section--light .form-group label,
.section--white .form-group label {
  color: var(--text-dark);
}


/* ----------------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------------- */
.footer-cta {
  text-align: center;
  padding-block: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.footer-cta__orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  pointer-events: none;
}

.footer-cta__orb--left {
  background: var(--accent);
  left: -200px;
  top: -200px;
}

.footer-cta__orb--right {
  background: #86868B;
  right: -200px;
  bottom: -200px;
}

.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--separator);
  padding-block: 40px;
}

.section--light + .footer,
.section--white + .footer {
  background: var(--bg-secondary);
  border-top-color: var(--separator-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

@media (max-width: 735px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

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

.footer__col h4 {
  font-size: var(--font-footnote);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer__col a {
  display: block;
  font-size: var(--font-footnote);
  color: var(--text-secondary);
  padding-block: 4px;
  transition: color var(--duration) ease;
}

.footer__col a:hover { color: var(--text-primary); }

.footer__brand p {
  color: var(--text-secondary);
  font-size: var(--font-footnote);
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.5;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) ease;
  padding: 0;
}

.footer__social a:hover { background: rgba(41, 151, 255, 0.15); }
.footer__social svg { width: 16px; height: 16px; }

.footer__newsletter {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.footer__newsletter input {
  flex: 1;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--separator);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: var(--font-footnote);
  outline: none;
}

.footer__newsletter input:focus { border-color: var(--accent); }

.footer__newsletter button {
  padding: 8px 18px;
  background: var(--accent-button);
  color: #fff;
  font-weight: 600;
  font-size: var(--font-footnote);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--duration) ease;
}

.footer__newsletter button:hover { background: var(--accent-hover); }

.footer__bottom {
  border-top: 1px solid var(--separator);
  margin-top: 32px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p,
.footer__bottom a {
  font-size: 11px;
  color: var(--text-tertiary);
}

.footer__bottom a:hover { color: var(--text-secondary); }


/* ----------------------------------------------------------------
   17. ABOUT PAGE
   ---------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--section-padding));
  padding-bottom: 48px;
  text-align: center;
}

.page-hero__subtitle {
  max-width: 580px;
  margin-inline: auto;
  margin-top: 12px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.team-card { text-align: center; }

.team-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--bg-elevated);
  border: 2px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 17px;
  color: var(--text-primary);
}

.team-card__role {
  font-size: var(--font-caption);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  counter-reset: process;
}

.process-step {
  text-align: center;
  padding: 32px 20px;
  counter-increment: process;
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}


/* ----------------------------------------------------------------
   18. SCROLL PROGRESS
   ---------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10001;
  will-change: transform;
  pointer-events: none;
}


/* ----------------------------------------------------------------
   19. MICRO-ANIMATION INITIAL STATES (GSAP handles transitions)
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

.reveal-blur {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(10px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}


/* ----------------------------------------------------------------
   20. SECTION DIVIDER
   ---------------------------------------------------------------- */
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 32px;
  border-radius: 1px;
  transform-origin: left;
  transform: scaleX(0);
}

.section-divider.is-visible {
  transform: scaleX(1);
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}


/* ----------------------------------------------------------------
   21. LOGO MARQUEE
   ---------------------------------------------------------------- */
.logo-track {
  display: flex;
  gap: 64px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.logo-track:hover {
  animation-play-state: paused;
}

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


/* ----------------------------------------------------------------
   22. REDUCED MOTION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-scale,
  .reveal-blur,
  .reveal-left,
  .reveal-right { opacity: 1; transform: none; filter: none; }
  .section-divider { transform: scaleX(1); }
  .logo-track { animation: none; }
}


/* ----------------------------------------------------------------
   23. LANGUAGE TOGGLE
   ---------------------------------------------------------------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--separator);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
  height: 28px;
  flex-shrink: 0;
}

.lang-toggle__btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
  line-height: 1;
}

.lang-toggle__btn:hover {
  color: var(--text-primary);
}

.lang-toggle__btn.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Toggle inside mobile overlay */
.menu-overlay .lang-toggle {
  margin-top: 16px;
  height: 40px;
  padding: 4px;
}

.menu-overlay .lang-toggle__btn {
  font-size: 16px;
  padding: 6px 16px;
}


/* ----------------------------------------------------------------
   24. RTL OVERRIDES
   ---------------------------------------------------------------- */
[dir="rtl"] {
  font-family: "Heebo", var(--font);
}

[dir="rtl"] .card__number {
  right: auto;
  left: 24px;
}

[dir="rtl"] .post-content blockquote {
  border-left: none;
  border-right: 2px solid var(--accent);
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .post-content ul,
[dir="rtl"] .post-content ol {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .btn:hover svg {
  transform: translateX(-3px);
}

[dir="rtl"] .link-cta svg {
  transform: scaleX(-1);
}

[dir="rtl"] .scroll-progress,
[dir="rtl"] .reading-progress {
  left: auto;
  right: 0;
  transform-origin: right;
}

[dir="rtl"] .section-divider {
  transform-origin: right;
}
