/* ==========================================================
   PAGE CSS CONTROLLER - ABOUT US
   Change these variables first. They control this page only.
   ========================================================== */
body.dt-page-about-us {
  --dt-h1-size: clamp(40px, 4.6vw, 62px);
  --dt-h2-size: clamp(40px, 4.8vw, 58px);
  --dt-p-size: 18px;
  --dt-mobile-h1-size: 34px;
  --dt-mobile-h2-size: 32px;
  --dt-mobile-p-size: 16px;

  --page-first-section-padding-top: 146px;
  --page-mobile-first-section-padding-top: 96px;
  --page-small-first-section-padding-top: 86px;

  --about-hero-min-height: 602px;
  --about-hero-content-padding: 96px 0 130px;
  --about-hero-title-size: clamp(40px, 4.6vw, 62px);
  --about-hero-text-size: clamp(18px, 2vw, 24px);
  --about-section-padding-y: 116px;
  --about-mobile-hero-content-padding: 76px 0 96px;
}

:root {
      --ink: #07061f;
      --navy: #0b0630;
      --deep: #080612;
      --text: #17182a;
      --muted: #676d7e;
      --violet: #7f4eee;
      --pink: #eb5ea4;
      --orange: #ec8422;
      --blue: #0b65cf;
      --wash: #e9efff;
      --line: rgba(8, 13, 40, 0.16);
      --shadow: 0 26px 70px rgba(14, 11, 58, 0.14);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--text);
      background: #fff;
      font-family: "Inter", "Segoe UI", Arial, sans-serif;
      overflow-x: hidden;
    }

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

    button {
      font: inherit;
    }

    img {
      max-width: 100%;
    }

    .container {
      width: min(1560px, calc(100% - 48px));
      margin: 0 auto;
    }

    .about-hero {
      min-height: 602px;
      display: grid;
      place-items: center;
      position: relative;
      overflow: hidden;
      color: #fff;
      text-align: center;
      background:
        radial-gradient(circle at 5% 80%, rgba(91, 58, 255, 0.78), transparent 24%),
        radial-gradient(circle at 83% 74%, rgba(10, 103, 224, 0.78), transparent 25%),
        radial-gradient(circle at 95% 26%, rgba(116, 53, 245, 0.26), transparent 30%),
        linear-gradient(135deg, #12093d 0%, #090813 64%, #0b0820 100%);
    }

    .about-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.34;
      pointer-events: none;
      background:
        radial-gradient(circle, rgba(255,255,255,0.16) 1px, transparent 1.8px),
        linear-gradient(120deg, transparent 0 64%, rgba(255,255,255,0.055) 64% 64.3%, transparent 64.3% 100%);
      background-size: 18px 18px, 20px 20px;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 980px;
      padding: 96px 0 130px;
    }

    .premium-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 46px;
      padding: 0 17px;
      border-radius: 999px;
      color: #fff;
      font-size: 18px;
      font-weight: 700;
      background: rgba(0, 0, 0, 0.72);
      box-shadow: inset 0 1px rgba(255,255,255,0.12);
    }

    .premium-pill i {
      width: 26px;
      height: 26px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: var(--navy);
      background: #fff;
      font-size: 14px;
    }

    .hero-content h1 {
      max-width: 760px;
      margin: 12px auto 0;
      color: #fff;
      font-size: clamp(40px, 4.6vw, 62px);
      line-height: 1.12;
      letter-spacing: -0.045em;
      font-weight: 800;
    }

    .hero-content p {
      max-width: 980px;
      margin: 8px auto 0;
      color: rgba(255,255,255,0.78);
      font-size: clamp(18px, 2vw, 24px);
      line-height: 1.28;
      font-weight: 600;
    }

    .stats-band {
      margin-top: -1px;
      color: #fff;
      background:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
        #171166;
      background-size: 46px 46px;
      border-top: 1px solid rgba(255,255,255,0.72);
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
    }

    .stat-card {
      min-height: 180px;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 24px;
    }

    .stat-number {
      display: inline-flex;
      align-items: baseline;
      color: #fff;
      font-size: clamp(52px, 5vw, 76px);
      line-height: 0.95;
      font-weight: 800;
      letter-spacing: -0.04em;
      white-space: nowrap;
    }

    .stat-number strong,
    .stat-number span {
      flex: 0 0 auto;
    }

    .stat-card p {
      margin: 14px 0 0;
      color: rgba(255,255,255,0.92);
      font-size: 18px;
      text-transform: uppercase;
      font-weight: 650;
    }

    .work {
      padding: 116px 0 122px;
      overflow: hidden;
      background:
        radial-gradient(circle at 0 20%, rgba(72, 102, 255, 0.26), transparent 22%),
        radial-gradient(circle at 100% 84%, rgba(91, 111, 255, 0.24), transparent 24%),
        var(--wash);
    }

    .section-title {
      max-width: 920px;
      margin: 0 auto 78px;
      text-align: center;
    }

    .section-title h2 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(40px, 4.8vw, 58px);
      line-height: 1.05;
      letter-spacing: -0.045em;
      text-transform: uppercase;
      font-weight: 800;
    }

    .grad {
      background: linear-gradient(100deg, var(--pink), var(--orange));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .section-title p {
      margin: 36px auto 0;
      max-width: 720px;
      color: #303244;
      font-size: clamp(19px, 2vw, 25px);
      line-height: 1.25;
      font-weight: 500;
    }

    .steps {
      position: relative;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 46px;
      text-align: center;
    }

    .steps::before {
      content: "";
      position: absolute;
      left: 4%;
      right: 4%;
      top: 85px;
      height: 1px;
      background: rgba(8, 13, 40, 0.34);
    }

    .step-card {
      position: relative;
      padding: 0 22px;
    }

    .step-label {
      display: block;
      min-height: 58px;
      margin-bottom: 14px;
      color: #000;
      font-size: 29px;
      font-weight: 500;
    }

    .step-dot {
      width: 26px;
      height: 26px;
      display: block;
      margin: 0 auto 56px;
      border-radius: 50%;
      background: linear-gradient(135deg, #0c7be8, #1236bb);
      box-shadow: 0 0 0 6px rgba(11,101,207,0.08);
      position: relative;
      z-index: 2;
    }

    .step-no {
      display: block;
      color: var(--violet);
      font-size: clamp(62px, 7vw, 84px);
      line-height: 0.9;
      font-weight: 400;
      letter-spacing: -0.06em;
      background: linear-gradient(140deg, var(--violet), var(--pink), var(--orange));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .step-card h3 {
      margin: 42px 0 10px;
      color: #090924;
      font-size: clamp(26px, 2.6vw, 34px);
      line-height: 1.05;
      letter-spacing: -0.035em;
      font-weight: 760;
    }

    .step-card p {
      max-width: 460px;
      margin: 0 auto;
      color: #1f2238;
      font-size: 17px;
      line-height: 1.35;
      font-weight: 520;
    }

    .who {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      min-height: 596px;
      color: #fff;
      background: #090113;
    }

    .who-copy {
      display: grid;
      align-content: center;
      padding: 70px clamp(36px, 8vw, 156px);
    }

    .who-copy h2 {
      margin: 0 0 52px;
      color: #fff;
      font-size: clamp(42px, 5vw, 58px);
      line-height: 1.05;
      letter-spacing: -0.052em;
      text-transform: uppercase;
      font-weight: 800;
    }

    .who-copy p {
      max-width: 760px;
      margin: 0 0 26px;
      color: #fff;
      font-size: clamp(20px, 2vw, 25px);
      line-height: 1.26;
      font-weight: 650;
    }

    .who-image {
      min-height: 596px;
      overflow: hidden;
      position: relative;
      background: #161825;
    }

    .who-image::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(5, 10, 22, 0.28);
    }

    .who-image img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      filter: saturate(0.82) contrast(0.96);
    }

    .who-image.image-missing {
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, #151228, #25305f);
    }

    .who-image.image-missing img {
      display: none;
    }

    .who-image.image-missing::before {
      content: "Digital Tales";
      color: #fff;
      font-size: 54px;
      font-weight: 800;
      font-family: Georgia, "Times New Roman", serif;
    }

    .faq {
      padding: 64px 0 124px;
      background:
        linear-gradient(rgba(34, 73, 160, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 73, 160, 0.05) 1px, transparent 1px),
        #eeeeef;
      background-size: 50px 50px;
    }

    .faq-title {
      max-width: 1220px;
      margin: 0 auto 42px;
      padding: 50px 20px 38px;
      text-align: center;
    }

    .faq-title h2 {
      margin: 0;
      color: #000;
      font-size: clamp(38px, 4.5vw, 58px);
      line-height: 1.04;
      letter-spacing: -0.05em;
      text-transform: uppercase;
      font-weight: 800;
    }

    .faq-list {
      width: min(1000px, calc(100% - 40px));
      margin: 0 auto;
    }

    .faq-item {
      border-bottom: 1px solid rgba(0,0,0,0.16);
    }

    .faq-question {
      width: 100%;
      min-height: 80px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 20px;
      align-items: center;
      border: 0;
      padding: 0 36px;
      color: #000;
      background: transparent;
      text-align: left;
      cursor: pointer;
      font-size: clamp(19px, 2vw, 23px);
      font-weight: 750;
    }

    .faq-question i {
      color: var(--blue);
      font-size: 30px;
      transition: transform 0.24s ease;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.28s ease;
    }

    .faq-answer p {
      margin: 0;
      padding: 0 36px 26px;
      color: #555b68;
      font-size: 17px;
      line-height: 1.5;
      font-weight: 500;
    }

    .faq-item.is-open .faq-question i {
      transform: rotate(45deg);
    }

    .reveal {
      opacity: 0;
      transform: translateY(26px);
      transition: opacity 0.7s ease, transform 0.7s ease;
      transition-delay: var(--delay, 0ms);
    }

    .reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .hero-content .premium-pill,
    .hero-content h1,
    .hero-content p {
      animation: heroIn 0.75s cubic-bezier(.2,.8,.2,1) both;
    }

    .hero-content h1 {
      animation-delay: 0.08s;
    }

    .hero-content p {
      animation-delay: 0.16s;
    }

    @keyframes heroIn {
      from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
      }
      to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
      }
    }

    @media (max-width: 980px) {
      .stats-grid,
      .steps,
      .who {
        grid-template-columns: 1fr;
      }

      .steps {
        gap: 38px;
      }

      .steps::before {
        display: none;
      }

      .step-card {
        padding: 24px;
        border: 1px solid rgba(8, 13, 40, 0.08);
        border-radius: 24px;
        background: rgba(255,255,255,0.38);
      }

      .step-label {
        margin-bottom: 20px;
      }

      .step-dot {
        margin-bottom: 30px;
      }

      .who-copy {
        padding: 68px 28px;
      }

      .who-image {
        min-height: 420px;
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(100% - 28px, 1560px);
      }

      .about-hero {
        min-height: 520px;
      }

      .hero-content {
        padding: 76px 0 96px;
      }

      .premium-pill {
        font-size: 14px;
      }

      .stat-card {
        min-height: 132px;
      }

      .work {
        padding: 72px 0;
      }

      .section-title {
        margin-bottom: 42px;
      }

      .section-title p {
        margin-top: 22px;
      }

      .who-copy p {
        font-size: 18px;
      }

      .faq {
        padding-bottom: 80px;
      }

      .faq-title {
        padding-top: 30px;
      }

      .faq-question {
        min-height: 76px;
        padding: 0 10px;
      }

      .faq-answer p {
        padding: 0 10px 22px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }

      .reveal {
        opacity: 1;
        transform: none;
      }
    }

/* Page controller mappings - ABOUT US */
body.dt-page-about-us .about-hero {
  min-height: var(--about-hero-min-height);
}

body.dt-page-about-us .about-hero .hero-content {
  padding: var(--about-hero-content-padding);
}

body.dt-page-about-us .about-hero h1 {
  font-size: var(--about-hero-title-size);
}

body.dt-page-about-us .about-hero p {
  font-size: var(--about-hero-text-size);
}

body.dt-page-about-us .work {
  padding-top: var(--about-section-padding-y);
  padding-bottom: var(--about-section-padding-y);
}

@media (max-width: 768px) {
  body.dt-page-about-us .about-hero .hero-content {
    padding: var(--about-mobile-hero-content-padding);
  }
}
