/* DORQ — home.css
   Styles for the homepage only: hero, carousel, process, AI, CTA. */
  .hero {
    position: relative;
    min-height: 100vh;
    background: #07080A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 128px 24px 64px;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
  }

  /* ---- Boot-up background (surge -> circuit draw -> operational grid) ---- */
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #07080A;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-bg__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 900ms ease;
  }
  .hero-bg__media.is-on { opacity: 1; }
  /* Keep the logo/text zone readable: darken the top, let the grid breathe below */
  .hero-bg__scrim {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(120% 85% at 50% 8%, rgba(7,8,10,0.92) 0%, rgba(7,8,10,0.55) 42%, rgba(7,8,10,0) 70%),
      linear-gradient(180deg, rgba(7,8,10,0.65) 0%, rgba(7,8,10,0) 38%);
    pointer-events: none;
  }
  /* Subtle ongoing "operational" breathing once booted */
  .hero-bg__pulse {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(60% 45% at 50% 92%, rgba(240,78,35,0.10) 0%, rgba(240,78,35,0) 70%);
    mix-blend-mode: screen;
  }
  .hero-bg.is-live .hero-bg__pulse {
    animation: bgBreathe 6s ease-in-out 900ms infinite;
  }
  @keyframes bgBreathe {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 0.9; }
  }

  .hero > .stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-bg.is-live .hero-bg__pulse { animation: none; opacity: 0.5; }
  }

  /* Animated logo lockup: power button rotates into the Q while DOR slides out from behind it */
  .lockup {
    display: flex;
    align-items: center;
    gap: 0.09em;
    font-size: clamp(56px, 9vw, 120px);
    cursor: pointer;
  }

  .dor-clip { overflow: hidden; }
  .dor {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #FFFFFF;
  }

  .mark {
    width: 0.7em;
    height: 0.7em;
    display: block;
    flex: none;
    overflow: visible;
    transform-origin: center;
  }

  .headline {
    margin: 72px 0 0;
    max-width: 820px;
    font-weight: 700;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-wrap: balance;
  }

  .subhead {
    margin: 24px 0 0;
    max-width: 620px;
    font-weight: 400;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.6;
    color: rgba(235, 237, 240, 0.62);
    text-wrap: pretty;
  }

  .cta-wrap { margin-top: 44px; }
  .cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 40px;
    border-radius: 999px;
    background: #F04E23;
    color: #14151A;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.01em;
    transition: background 220ms ease, transform 220ms cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 220ms ease;
  }
  .cta:hover { background: #FF6A3D; color: #14151A; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(240,78,35,0.35); }

  /* ---------------------- What we do — carousel ---------------------- */
  .wwd-tabs { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
  .wwd-tab {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center;
    height: 44px; padding: 0 22px; border-radius: 999px;
    border: 1px solid var(--hairline); background: transparent;
    color: var(--muted); font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 500;
    cursor: pointer;
    transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
  }
  .wwd-tab:hover { color: #FFFFFF; border-color: rgba(240,78,35,0.5); }
  .wwd-tab.active { color: #FFFFFF; border-color: rgba(240,78,35,0.65); background: rgba(240,78,35,0.10); }
  .wwd-tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--orange); }
  .wwd-tab.active .bar { animation: tabfill 6.5s linear forwards; }
  .wwd.paused .wwd-tab.active .bar,
  .wwd.off .wwd-tab.active .bar { animation-play-state: paused; }
  @keyframes tabfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  .wwd-viewport { overflow: hidden; margin-top: 40px; cursor: grab; touch-action: pan-y; user-select: none; }
  .wwd-viewport:active { cursor: grabbing; }
  .wwd-track { display: flex; width: 400%; transition: transform 750ms cubic-bezier(0.7, 0, 0.25, 1); }
  .wwd-slide { width: 25%; flex: none; display: grid; grid-template-columns: 0.9fr 1.5fr; gap: 48px; align-items: center; box-sizing: border-box; padding: 4px; }
  .wwd-num { font-weight: 700; font-size: 13px; letter-spacing: 0.22em; color: var(--orange); }
  .wwd-copy h3 { margin: 10px 0 0; font-size: clamp(28px, 3vw, 42px); font-weight: 700; letter-spacing: -0.02em; color: #FFFFFF; }
  .wwd-copy h3 span { color: var(--orange); }
  .wwd-copy p { margin: 14px 0 0; max-width: 380px; font-family: 'Inter', sans-serif; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
  .wwd-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 600; color: var(--orange); transition: color 200ms ease, transform 200ms ease; }
  .wwd-link:hover { color: #FFFFFF; transform: translateX(3px); }
  /* All slide content stays visible so the horizontal slide reads as one smooth motion */

  .svc-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 22px; }
  .svc-cat { display: flex; flex-direction: column; }
  .svc-cat__h { margin: 0 0 8px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(233,236,240,0.42); }
  .svc-item {
    display: flex; align-items: center; gap: 10px; padding: 11px 2px;
    font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 500; color: #EDEFF2;
    border-bottom: 1px solid rgba(255,255,255,0.055);
    transition: color 180ms ease, transform 180ms ease;
  }
  .svc-item:last-child { border-bottom: 0; }
  .svc-item::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); opacity: 0.45; transition: opacity 180ms ease, transform 180ms ease; }
  .svc-item:hover { color: var(--orange); transform: translateX(4px); }
  .svc-item:hover::before { opacity: 1; transform: scale(1.35); }

  /* ---------------------- Process timeline ---------------------- */
  /* Travel time of the dot + when it reaches each of the 6 milestones */
  .timeline { position: relative; margin-top: 108px; --travel: 3200ms; --start: 400ms; }
  /* The line is drawn (scaled) by the moving dot; JS sets left/width to span Discover -> Grow only */
  .timeline__line { position: absolute; top: 23px; left: 0; width: 0; height: 2px; border-radius: 2px; background: transparent; }
  .timeline__fill { position: absolute; inset: 0; border-radius: 2px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), var(--orange-hi)); box-shadow: 0 0 10px rgba(240,78,35,0.45); }
  .process.go .timeline__fill { transition: transform var(--travel) linear var(--start); transform: scaleX(1); }
  /* Leading white dot — sits ON the line (centred on the 2px track) and travels along it */
  .timeline__dot { position: absolute; top: 50%; left: 0; width: 15px; height: 15px; margin-left: -7px; transform: translateY(-50%); border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 16px 5px rgba(240,78,35,0.85); opacity: 0; z-index: 2; }
  .process.go .timeline__dot { animation: tdot var(--travel) linear var(--start) forwards; }
  @keyframes tdot { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
  /* Growth arrow — the orange line keeps climbing past Grow into an upward zig-zag arrow.
     Same 2px stroke, same colour and same glow as the horizontal line for a seamless continuation. */
  .timeline__arrow { position: absolute; top: 24px; left: 0; width: 132px; height: 152px; overflow: visible; transform: translate(-3px, -148px); pointer-events: none; filter: drop-shadow(0 0 5px rgba(240,78,35,0.45)); }
  .timeline__arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .process.go .ta-path { animation: tdraw 720ms cubic-bezier(0.5, 0, 0.2, 1) forwards; animation-delay: calc(var(--start) + var(--travel)); }
  .process.go .ta-head { animation: tdraw 260ms ease-out forwards; animation-delay: calc(var(--start) + var(--travel) + 660ms); }
  @keyframes tdraw { to { stroke-dashoffset: 0; } }

  .timeline__steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
  .tstep { display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transform: translateY(16px) scale(0.95); }
  .process.go .tstep { opacity: 1; transform: none; transition: opacity 450ms ease var(--d), transform 520ms cubic-bezier(0.22, 0.8, 0.3, 1) var(--d); }
  .tstep__dot {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: #0E1013; border: 1px solid rgba(240,78,35,0.55);
    color: var(--orange); font-weight: 700; font-size: 14px;
    box-shadow: 0 0 0 6px #07080A, 0 0 18px rgba(240,78,35,0.25);
    transition: transform 240ms cubic-bezier(0.22, 0.8, 0.3, 1), border-color 240ms ease, box-shadow 240ms ease;
  }
  .tstep:hover .tstep__dot { transform: scale(1.12); border-color: var(--orange); box-shadow: 0 0 0 6px #07080A, 0 0 26px rgba(240,78,35,0.55); }
  .tstep h3 { margin: 18px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: #FFFFFF; }
  .tstep p { margin: 8px 0 0; max-width: 170px; font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.55; color: var(--muted); }

  /* ---------------------- AI section ---------------------- */
  .ai { background: radial-gradient(70% 55% at 78% 50%, rgba(240,78,35,0.07), transparent 65%), #07080A; }
  .ai__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  .ai-feat { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .ai-card { padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--hairline); transition: transform 220ms ease, border-color 220ms ease; }
  .ai-card:hover { transform: translateY(-3px); border-color: rgba(240,78,35,0.45); }
  .ai-card b { display: block; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: #EDEFF2; }
  .ai-card span { display: block; margin-top: 6px; font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.5; color: var(--muted); }

  .orbit-wrap { position: relative; width: min(460px, 44vw); aspect-ratio: 1; margin: 0 auto; }
  .orbit-core {
    position: absolute; inset: 38%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #17181C, #0B0C0F);
    border: 1px solid rgba(240,78,35,0.35);
    display: flex; align-items: center; justify-content: center;
    animation: coreGlow 4.5s ease-in-out infinite;
  }
  .orbit-core img { width: 46%; height: auto; }
  @keyframes coreGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(240,78,35,0.18), inset 0 0 20px rgba(240,78,35,0.10); }
    50%      { box-shadow: 0 0 90px rgba(240,78,35,0.40), inset 0 0 30px rgba(240,78,35,0.20); }
  }
  .ai-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(240,78,35,0.5); opacity: 0; animation: ringOut 5s ease-out infinite; }
  .ai-ring:nth-of-type(2) { animation-delay: 1.66s; }
  .ai-ring:nth-of-type(3) { animation-delay: 3.33s; }
  @keyframes ringOut {
    0% { transform: scale(0.28); opacity: 0; }
    12% { opacity: 0.6; }
    100% { transform: scale(1); opacity: 0; }
  }
  .orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.10); animation: spin linear infinite; }
  .orbit--a { inset: 26%; animation-duration: 32s; }
  .orbit--b { inset: 10%; animation-duration: 52s; animation-direction: reverse; }
  @keyframes spin { to { transform: rotate(360deg); } }
  /* Transparent app icons revolving around the DORQ core — the everyday tools DORQ's AI automates.
     Each icon counter-spins so the logo stays upright. */
  .sat { position: absolute; transform: translate(-50%, -50%); }
  .app { display: grid; place-items: center; width: 44px; height: 44px; }
  .app svg { width: 42px; height: 42px; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.65)); }
  .orbit--a .app { animation: spin 32s linear infinite reverse; }
  .orbit--b .app { animation: spin 52s linear infinite; }
  .orbit-cap { margin: 26px auto 0; max-width: 340px; text-align: center; font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.5; color: var(--muted); }

  /* ---------------------- CTA banner ---------------------- */
  /* Layered "launch" backdrop: central orange bloom + dark scrim + the DORQ grid as a lit floor */
  .cta-sec {
    text-align: center;
    background:
      linear-gradient(180deg, rgba(7,8,10,0.72) 0%, rgba(7,8,10,0.34) 34%, rgba(7,8,10,0.10) 55%, rgba(7,8,10,0.42) 100%),
      url('../assets/cta-bg.webp') center / cover no-repeat,
      #07080A;
  }
  /* keep the headline above the artwork */
  .cta-sec .sec__inner { position: relative; z-index: 2; }
  /* faint breathing glow behind the headline to lift the type off the art */
  .cta-glow {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(40% 30% at 50% 38%, rgba(7,8,10,0.45), rgba(7,8,10,0) 70%);
    animation: ctaBloom 6s ease-in-out infinite;
  }
  @keyframes ctaBloom { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
  .cta-sec::before, .cta-sec::after {
    content: ""; position: absolute; left: 50%; top: 48%; z-index: 1;
    width: 820px; height: 820px; margin: -410px 0 0 -410px;
    border-radius: 50%; border: 1px solid rgba(240,78,35,0.20);
    animation: ctaRing 7s ease-out infinite;
    pointer-events: none;
  }
  .cta-sec::after { animation-delay: 3.5s; }
  @keyframes ctaRing {
    0% { transform: scale(0.12); opacity: 0; }
    15% { opacity: 0.75; }
    100% { transform: scale(1); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .cta-glow { animation: none; opacity: 0.7; }
  }
  .cta-title { margin: 0; font-size: clamp(38px, 5.4vw, 68px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: #FFFFFF; }
  .cta-title span { color: var(--orange); }
  .cta-copy { margin: 26px 0 0; font-family: 'Inter', sans-serif; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--muted); }
  .cta-actions { margin-top: 42px; }
  .btn-big:hover { transform: translateY(-3px); background: var(--orange-hi); box-shadow: 0 16px 40px rgba(240,78,35,0.35); color: #0A0B0D; }

  /* ---------------------- Responsive ---------------------- */
  @media (max-width: 1080px) {
    .ai__grid { grid-template-columns: 1fr; gap: 46px; justify-items: center; }
    .ai__grid > div:first-child { text-align: left; }
    .orbit-wrap { width: min(460px, 82vw); }
  }
  @media (max-width: 960px) {
    .wwd-slide { grid-template-columns: 1fr; gap: 28px; }
    .ai__grid { grid-template-columns: 1fr; gap: 44px; }
    .timeline { margin-top: 48px; }
    .timeline__line, .timeline__dot, .timeline__arrow { display: none; }
    .timeline__steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .tstep { opacity: 1 !important; transform: none !important; }
    .tstep__dot { box-shadow: none; }
    .tstep p { max-width: none; }
  }
  @media (max-width: 560px) {
    .svc-cats { grid-template-columns: 1fr; gap: 22px; }
    .ai-feat { grid-template-columns: 1fr; }
    .timeline__steps { grid-template-columns: 1fr; }
    /* Four pills wrap to a lone orphan on one row; a 2x2 grid reads as
       intentional and keeps each tap target full width. */
    .wwd-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .wwd-tab { justify-content: center; padding: 0 12px; }
    .wwd-viewport { margin-top: 28px; }
    .headline { margin-top: 56px; }
    .cta-wrap { margin-top: 34px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rv, .tstep { opacity: 1 !important; transform: none !important; transition: none !important; }
    .wwd-tab.active .bar { animation: none; }
    .wwd-track { transition: none; }
    .timeline__fill { transform: scaleX(1); transition: none; }
    .timeline__dot { display: none; }
    .timeline__arrow path { stroke-dashoffset: 0; animation: none !important; }
    .ai-ring, .orbit, .orbit-core, .app, .cta-sec::before, .cta-sec::after { animation: none !important; }
  }
