:root {

  
    --space-cadet: hsl(224, 48%, 22%);
    --red-crayola: hsl(0, 0%, 0%);
    --black-coral: hsl(219, 13%, 44%);
    --blue-ryb: hsl(64, 11%, 68%);
    --cultured: hsl(0, 0%, 96%);
    --white: hsl(0, 0%, 100%);
 
  
    --ff-be-vietnam-pro: 'Be Vietnam Pro', sans-serif;
  
    --fs-1: 1.875rem;
    --fs-2: 1.5rem;
    --fs-3: 1.063rem;
    --fs-4: 0.875rem;
    --fs-5: 0.813rem;
  
    --fw-500: 500;
    --fw-600: 600;
    --fw-700: 700;
  
    /**
     * transition
     */
  
    --transition: 0.25s ease;
    --transition-2: 0.5s ease;
  
    /**
     * spacing
     */
  
    --section-padding: 60px;
  
    /**
     * border radius
     */
  
    --radius-4: 4px;
    --radius-8: 8px;
    --radius-12: 12px;
  
  }
  
  
  /*-----------------------------------*\
    #PACKAGE
  \*-----------------------------------*/
  
  .package { padding-block: var(--section-padding); }
  
  .package-list { margin-bottom: 10px; }
  
  .package-list > li:not(:last-child) { margin-bottom: 10px; }
  
  .package-card {
    background: var(--cultured);
    overflow: hidden;
    border-radius: 15px;
  }
  
  .package-card .card-banner { height: 100px; }
  
  .package-card .card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .package-card .card-content { padding: 30px 20px; }
  
  .package-card .card-title { margin-bottom: 15px; }
  
  .package-card .card-text {
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .card-meta-list {
    background: var(--bright-navy-blue);
    max-width: max-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 8px;
    box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.15);
    border-radius: 50px;
  }
  
  .card-meta-item { position: relative; }
  
  .card-meta-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 4px;
    right: -1px;
    bottom: 4px;
    width: 20px;
    background: hsla(0, 0%, 0%, 0.3);
  }
  
  .meta-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding-inline: 9px;
    color: var(--black-coral);
    font-size: var(--fs-8);
  }
  
  .meta-box > ion-icon {
    color: var(--bright-navy-blue);
    font-size: 13px;
  }
  
  .package-card .card-price {
    background: var(--united-nations-blue);
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
  }
  
  .package-card .card-price .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px 15px;
    margin-bottom: 10px;
  }
  
  .package-card .card-price .reviews { font-size: var(--fs-5); }
  
  .package-card .card-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    font-size: 14px;
  }
  
  .package-card .card-rating ion-icon:last-child { color: hsl(260, 33%, 26%); }
  
  .package-card .price {
    font-size: var(--fs-2);
    font-family: var(--ff-montserrat);
    font-weight: var(--fw-800);
    margin-bottom: 20px;
  }
  
  .package-card .price span {
    font-size: var(--fs-7);
    font-weight: initial;
  }
  
  .package .btn { margin-inline: auto; }
  
  
  
  
  
  
  /*-----------------------------------*\
    #RESET
  \*-----------------------------------*/
  
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  li { list-style: none; }
  
  a { text-decoration: none; }
  
  a,
  img,
  span,
  input,
  button,
  ion-icon { display: block; }
  
  input,
  button {
    background: none;
    border: none;
    font: inherit;
  }
  
  button { cursor: pointer; }
  
  input { width: 100%; }

  
  body { background: var(--white); }
  
  
  
  
  
  /*-----------------------------------*\
    #REUSED STYLE
  \*-----------------------------------*/
  
  .container { padding-inline: 30px; }
  
  .w-100 { width: 100%; }
  
  .h1,
  .h2,
  .h3 {
    color: var(--space-cadet);
    line-height: 1.2;
  }
  
  .h1 { font-size: 5rem; }
  
  .h2 { font-size: var(--fs-2); }
  
  .h3 { font-size: var(--fs-3); }
  
  .section-text,
  .features .card-text {
    color: var(--black-coral);
    font-size: 2rem;
    line-height: 1.8;
    margin-bottom: 15px;
  }
  
  .btn {
    font-size: var(--fs-4);
    font-weight: var(--fw-500);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 14px 25px;
    border-radius: var(--radius-4);
    transition: var(--transition);
  }
  
  
  .btn-primary {
    color: var(--white);
    background: var(--red-crayola);
  }
  
  .btn > ion-icon { font-size: 16px; }
  
  .btn-primary:is(:hover, :focus) { background: var(--blue-ryb); }
  
  .btn-secondary {
    background: var(--blue-ryb);
    color: var(--white);
  }
  
  .btn-secondary:is(:hover, :focus) { background: var(--red-crayola); }
  
  .section-subtitle {
    color: var(--black-coral);
    font-size: var(--fs-5);
    font-weight: var(--fw-600);
    margin-bottom: 15px;
  }
  
  
  
  
  
  /*-----------------------------------*\
    #HEADER
  \*-----------------------------------*/
  
  .header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    background: var(--white);
    box-shadow: 0 2px 25px hsla(0, 0%, 0%, 0.1);
    padding-block: 16px;
    overflow: hidden;
    transition: 0.35s ease-out;
    z-index: 4;
  }
  
  .header.nav-active {
    height: 250px;
    transition: 0.5s ease-out;
  }
  
  .header.active {
    position: fixed;
    animation: fadeIn 0.5s ease forwards;
  }
  
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo img { width: 160px; }
  
  .nav-toggle-btn {
    color: hsla(0, 0%, 0%, 0.8);
    font-size: 35px;
    padding-inline: 5px;
  }
  
  .nav-toggle-btn .open,
  .nav-toggle-btn.active .close { display: block; }
  
  .nav-toggle-btn .close,
  .nav-toggle-btn.active .open { display: none; }
  
  .navbar {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding-block: 10px;
    visibility: hidden;
  }
  
  .header.nav-active .navbar { visibility: visible; }
  
  .navbar-link {
    color: var(--space-cadet);
    font-size: var(--fs-4);
    font-weight: var(--fw-600);
    padding: 6px 15px;
    transition: var(--transition);
    opacity: 0;
    color: rgb(89, 185, 185);
  }
  
  .header.nav-active .navbar-link { opacity: 1; }
  
  .navbar-link:is(:hover, :focus) { color: var(--red-crayola); }
  
  .header .btn { display: none; }
  
  
  
  
  
  /*-----------------------------------*\
    #HERO
  \*-----------------------------------*/
  
  .hero {
    background: transparent;

    padding-bottom: var(--section-padding);
  }
  
  .hero .shape { display: none; }
  
  .hero-banner { margin-bottom: 30px; }
  
  .hero-content { text-align: center; }
  
  .hero-title
  .hero .section-text { margin-bottom: 20px; }
  
  .hero .btn { margin-inline: auto; }
  
  
  
  
  
  /*-----------------------------------*\
    #FEATURES
  \*-----------------------------------*/
  
  
  .features .section-title { margin-bottom: 40px; }
  
  .features :is(.section-subtitle, .section-title) { text-align: center; }
  
  .features-list {
    display: grid;
    gap: 25px;
  }
  
  .features-card {
    border: 1px solid hsl(0, 0%, 90%);
    padding: 30px;
    text-align: center;
  }
  
  .features-card .card-icon {
    max-width: max-content;
    margin-inline: auto;
    margin-bottom: 30px;
  }
  
  .features-card .card-title { margin-bottom: 15px; }
  
  .features-card .card-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: var(--red-crayola);
    font-size: var(--fs-5);
    font-weight: var(--fw-600);
    transition: var(--transition);
  }
  
  .features-card .card-link:is(:hover, :focus) {
    gap: 10px;
    color: var(--space-cadet);
  }
  
  
  
  
  
  /*-----------------------------------*\
    #SERVICE
  \*-----------------------------------*/
  
  .service {
    background: transparent;
    padding-block: 0;
  }
  
  .service-banner { margin-bottom: 30px; }
  
  .service-content:first-of-type {
    padding-bottom: 50px;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.05);
    margin-bottom: 50px;
  }
  
  .service .section-title { margin-bottom: 30px; }
  
 .service-item {
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  border-top: 3px groove hsla(0, 0%, 0%, 0.9);
  border-bottom: 3px none;
  border-left: 3px dotted hsla(0, 0%, 0%, 0.9);
  box-shadow: 0 5px 25px 10px hsla(0, 0%, 0%, 0.02);
  border-radius: var(--radius-8);
}

  
  .service-item:not(:last-child) { margin-bottom: 20px; }
  
  .service-item-icon {
    background: var(--cultured);
    color: var(--red-crayola);
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: var(--transition);
  }
  
  .service-item-icon ion-icon { --ionicon-stroke-width: 50px; }
  
  .service-item:hover .service-item-icon {
    background: var(--red-crayola);
    color: var(--white);
  }
  
  
  
  
  
  /*-----------------------------------*\
    #BLOG
  \*-----------------------------------*/
  
  .blog { padding-block: var(--section-padding); }
  
  .blog :is(.section-subtitle, .section-title) { text-align: center; }
  
  .blog .section-title { margin-bottom: 40px; }
  
  .blog-list {
    display: grid;
    gap: 25px;
  }
  
  .blog-card {
    background: var(--white);
    box-shadow: 0 2px 25px 10px hsla(0, 0%, 0%, 0.1);
    border-radius: var(--radius-12);
    overflow: hidden;
  }
  
  .blog-banner {
    aspect-ratio: 2 / 1.3;
    overflow: hidden;
  }
  
  .blog-banner :is(a, img) { height: 100%; }
  
  .blog-banner img {
    object-fit: cover;
    transition: var(--transition-2);
  }
  
  .blog-card:hover .blog-banner img { transform: scale(1.1); }
  
  .blog-content { padding: 20px; }
  
  .blog-meta-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .blog-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--black-coral);
    font-size: var(--fs-5);
    text-transform: uppercase;
  }
  
  .blog-meta-item > ion-icon {
    color: var(--red-crayola);
    --ionicon-stroke-width: 45px;
  }
  
  .blog-meta-item .blog-meta-link {
    color: var(--black-coral);
    transition: var(--transition);
  }
  
  .blog-meta-item .blog-meta-link:is(:hover, :focus) { color: var(--red-crayola); }
  
  .blog-title > a {
    color: inherit;
    transition: var(--transition);
  }
  
  .blog-title > a:is(:hover, :focus) { color: var(--red-crayola); }
  
  
  
  
  
  /*-----------------------------------*\
    #NEWSLETTER
  \*-----------------------------------*/
  
  .newsletter {
    background: var(--cultured);
    padding-block: var(--section-padding);
  }
  
  .newsletter-banner { margin-bottom: 30px; }
  
  .newsletter .section-title { margin-bottom: 40px; }
  
  .input-field {
    background: var(--white);
    outline: 1px solid hsla(0, 0%, 0%, 0.1);
    padding: 15px 20px;
    border-radius: var(--radius-4);
    margin-bottom: 15px;
    transition: var(--transition);
  }
  
  .input-field:focus { outline-color: var(--red-crayola); }
  
  
  
  
  
  /*-----------------------------------*\
    #FOOTER
  \*-----------------------------------*/
  
  .footer-top { padding-block: var(--section-padding); }
  
  .footer .logo { margin-bottom: 20px; }
  
  .location-text {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
  }
  
  .location-icon {
    background: var(--cultured);
    color: var(--red-crayola);
    font-size: 22px;
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
  }
  
  .address {
    color: var(--space-cadet);
    font-size: var(--fs-5);
    font-weight: var(--fw-600);
    line-height: 1.6;
    font-style: normal;
  }
  
  .quicklink-box { margin-bottom: 15px; }
  
  .quicklink-title,
  .contact-title {
    font-weight: var(--fw-700);
    margin-bottom: 20px;
  }
  
  .quicklink-list {
  display: grid;
  grid-template-columns: repeat(4, 2fr);
  gap: 1rem;                /* space between columns/rows */
  list-style: none;         /* remove bullets */
  padding: 0;               /* reset any default UL padding */
  margin: 0;                /* reset any default UL margin */
}
  
  .quicklink-list > li { padding-block: 3px; }
  
  .quicklink {
    color: var(--black-coral);
    font-size: var(--fs-4);
    transition: var(--transition);
  }
  
  .quicklink:is(:hover, :focus) { color: var(--red-crayola); }
  
  .contact-list {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-4);
    box-shadow: 0 2px 50px 10px hsla(0, 0%, 0%, 0.08);
  }
  
  .contact-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }
  
  .contact-item:first-child {
    padding-bottom: 8px;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
    margin-bottom: 8px;
  }
  
  .contact-icon {
    background: var(--cultured);
    color: var(--red-crayola);
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 18px;
    border-radius: 50%;
    transition: var(--transition);
  }
  
  .contact-icon ion-icon { --ionicon-stroke-width: 40px; }
  
  .contact-item:hover .contact-icon {
    background: var(--red-crayola);
    color: var(--white);
  }
  
  .contact-link {
    color: var(--black-coral);
    font-size: var(--fs-4);
    transition: var(--transition);
  }
  
  .contact-link:is(:hover, :focus) { color: var(--red-crayola); }
  
  .footer-bottom {
    background: var(--space-cadet);
    padding-block: 30px;
  }
  
  .copyright {
    color: var(--white);
    font-size: var(--fs-4);
    line-height: 1.8;
    text-align: center;
    margin-bottom: 15px;
  }
  
  .copyright > a {
    display: inline-block;
    color: inherit;
    text-decoration: underline;
    transition: var(--transition);
  }
  
  .copyright > a:is(:hover, :focus) { color: var(--red-crayola); }
  
  .social-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  
  .social-link {
    background: hsla(0, 0%, 100%, 0.2);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: var(--transition);
  }
  
  .social-link:is(:hover, :focus) { background: var(--red-crayola); }
  
  
  
  
  
  /*-----------------------------------*\
    #GO TO TOP
  \*-----------------------------------*/
  
  .go-top {
    background: var(--white);
    color: var(--space-cadet);
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px hsla(0, 0%, 0%, 0.1);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: var(--transition);
    z-index: 2;
  }
  
  .go-top.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  
  .go-top:is(:hover, :focus) {
    background: var(--blue-ryb);
    color: var(--white);
  }
  
  
  
  
  
  /*-----------------------------------*\
    #MEDIA QUERIES
  \*-----------------------------------*/
  
  /**
   * responsive larger than 575px screen
   */
  
  @media (min-width: 575px) {
  
    /**
     * REUSED STYLE
     */
  
    .container {
      max-width: 520px;
      margin-inline: auto;
    }
  
  
  
    /**
     * FEATURES
     */
  
    .features-list {
      grid-template-columns: 1fr 1fr;
      gap: 40px 30px;
    }
  
    .features-card {
      border: none;
      padding: 0;
    }
  
  }
  
  
  
  
  
  /**
   * responsive larger than 768px screen
   */
  
  @media (min-width: 768px) {
  
    /**
     * base font size
     */
  
    html { font-size: 17.5px; }
  
    /**
     * CUSTOM PROPERTY
     */
  
    :root {
  
      /**
       * typography
       */
  
      --fs-1: 2.286rem;
      --fs-2: 1.829rem;
  
    }
  
  
  
    /**
     * REUSED STYLE
     */
  
    .container { max-width: 700px; }
  
  
  
    /**
     * FEATURES
     */
  
    .features-card { text-align: left; }
  
    .features-card .card-icon { margin-inline: 0; }
  
    .features-card .card-icon img { width: 60px; }
  
    .features-card .card-link { justify-content: flex-start; }
  
  
  
    /**
     * SERVICE
     */
  
    .service-item:not(:last-child) { margin-bottom: 30px; }
  
    .service-list { padding-right: 80px; }
  
    .service-item:nth-child(even) { transform: translateX(80px); }
  
  
  
    /**
     * BLOG
     */
  
   
  
  
  
    /**
     * FOOTER
     */
  
    .footer-top .container {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 30px ;
    }
  
    .footer-bottom .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  
    .copyright { margin-bottom: 0; }
  
  }
  
  
  
  
  
  /**
   * responsive larger than 992px screen
   */
  
  @media (min-width: 992px) {
  
    /**
     * base font size
     */
  
    html { font-size: 18px; }
  
    /**
     * CUSTOM PROPERTY
     */
  
    :root {
  
      /**
       * typography
       */
  
      --fs-1: 2.571rem;
      --fs-2: 1.944rem;
      --fs-3: 1.167rem;
  
      /**
       * spacing
       */
  
      --section-padding: 120px;
  
    }
  
  
  
    /**
     * REUSED STYLE
     */
  
    .container { max-width: 950px; }
  
    .section-title {
      max-width: 20ch;
      margin-inline: auto;
    }
  
  
  
    /**
     * HEADER
     */
  
    .header,
    .header.nav-active { height: unset; }
  
    .header {
      background: none;
      box-shadow: none;
    }
  
    .header.active {
      background: rgba(245, 245, 245, 0.285);
      box-shadow: 0 2px 25px hsla(0, 0%, 100%, 0.1);
    }
  
    .nav-toggle-btn { display: none; }
  
    .navbar { all: unset; }
  
    .navbar-link {
      opacity: 1;
      padding-block: 20px;
    }
  
    .header.active .navbar-link { padding-block: 5px; }
  
    .navbar-list { display: flex; }
  
    .header .btn {
      display: flex;
      font-size: var(--fs-5);
    }
  
  
  
    /**
     * HERO
     */
  
    .hero .container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
    }
    .hero .bookingcontainer {
  display: flex;
  align-items: center;
  justify-items: center;
  justify-content: center;
  /* align items at the top of each grid cell */
}

  
    .hero { padding-top: 180px; }
  
    .hero-banner {
      margin-bottom: 0;
      order: 1;
    }
  
    .hero-content { text-align: left; }
  
    .hero .btn { margin-inline: 0; }
  
  
  
    /**
     * FEATURES
     */
  
    .features-list { grid-template-columns: repeat(4, 1fr); }
  
    .features-card .card-icon img { width: unset; }
  
  
  
    /**
     * SERVICE
     */
  
    .service .container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 100px 40px;
    }
  
    .service-banner { margin-bottom: 0; }
  
    .service-content:first-of-type {
      padding-bottom: 0;
      border-bottom: none;
      margin-bottom: 0;
    }
  
    .service-list { padding-right: 50px; }
  
    .service-item:nth-child(even) { transform: translateX(50px); }
  
    .service-item-icon {
      min-width: 40px;
      height: 40px;
      font-size: 1.125rem;
    }
  
    .service-banner:last-of-type { order: 1; }
  
  
  
    /**
     * NEWSLETTER
     */
  
    .newsletter .container {
      display: flex;
      align-items: center;
      gap: 50px;
    }
  
    .newsletter-banner {
      width: 50%;
      margin-bottom: 0;
      order: 1;
    }
  
    .newsletter-content { width: 50%; }
  
    .newsletter-form {
      display: flex;
      gap: 25px;
    }
  
    .input-field { margin-bottom: 0; }
  
    .newsletter .btn {
      min-width: max-content;
      padding-inline: 15px;
    }
  
  
  
    /**
     * FOOTER
     */
  
    .footer-top .container {
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
    }
  
    .contact-list { padding: 10px; }
  
    .contact-item:first-child {
      padding-bottom: 10px;
      margin-bottom: 10px;
    }
  
  }
  
  
  
  
  
  /**
   * responsive larger than 1200px screen
   */
  
  @media (min-width: 1200px) {
  
    /**
     * CUSTOM PROPERTY
     */
  
    :root {
  
      /**
       * typography
       */
  
      --fs-1: 3rem;
      --fs-2: 2.333rem;
      --fs-3: 1.222rem;
      --fs-4: 0.944rem;
  
    }
  
  
  
    /**
     * REUSED STYLE
     */
  
    .container { max-width: 1150px; }
  
  
  
    /**
     * HERO
     */
  
    .hero {
      position: relative;
      z-index: 1;
      overflow: hidden;
    }
  
    .hero .shape {
      display: block;
      position: absolute;
      user-select: none;
      z-index: -1;
    }
  
    .hero .shape-1 {
      top: 0;
      left: -80px;
      height: 100%;
    }
  
    .hero .shape-2 {
      bottom: 60px;
      left: 30%;
    }
  
    .hero .shape-3 {
      top: 0;
      right: -80px;
      height: 100%;
    }
  
  
  
    /**
     * FEATURES
     */
  
    .features .section-title { margin-bottom: 70px; }
  
  
  
    /**
     * SERVICE
     */
  
    .service .container { column-gap: 60px; }
  
    .service .section-title { margin-bottom: 50px; }
  
  
  
    /**
     * BLOG
     */
  
    .blog .section-title { margin-bottom: 70px; }
  
  
  
  
    /**
     * NEWSLETTER
     */
  
    .newsletter .container { gap: 80px; }
  
    .newsletter-banner { width: 45%; }
  
    .newsletter-content { width: 55%; }
  
  }
  .progress-container {
    position: absolute;
    top: 3%;
    left: 0;
    width: 5px; /* Vertical bar width */
    height: 91%;
    background: rgba(0, 0, 0, 0.1); /* Optional background for the container */
    z-index: 20;
  }

  .progress-bar {
    width: 100%;
    height: 0%;
    background: rgb(255, 255, 255);
    transition: height 0.25s ease-out;
  }

  .image-wrapper {
    position: relative;
    display: inline-block;
  }

  .image-wrapper img {
    display: block;
  }
/* Glass effect for feature cards */
.footer-top {
  /* translucent white */
  background: rgba(238, 233, 233, 0.7);
  /* heavy blur behind */
  backdrop-filter: blur(20px);
  /* subtle border for definition */
}
@media (max-width: 768px) {
  .quicklink-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .quicklink-list {
    grid-template-columns: 1fr;
  }
}
.learn-more-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #63768c;
  border: none;
  border-radius: 0.375rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.learn-more-link:hover {
  background-color: #63768c;
  transform: translateY(-2px);
}

.learn-more-link:active {
  background-color: #63768c;
  transform: translateY(0);
}

.learn-more-link:focus {
  outline: 3px solid rgba(0, 112, 243, 0.5);
  outline-offset: 2px;
}


.service-sticky .pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 2fr; /* left img, right text */
  gap: 40px;
    background: rgba(255, 255, 255);
  align-items: center;
  overflow: hidden;
}

/* Left image stays pinned */
.pin-left {
  position: sticky; /* extra safety */
  margin-left: 15rem;
  height: 80vh;
  width: 50vh;
  align-items: center;
}
.pin-left img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  transition: opacity .6s ease, transform .6s ease;
}

/* Right side holds staged text, stacked */
.pin-right {
  position: relative;
  height: 80vh;
}
.stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(0);
  transition: opacity .5s ease, transform .6s ease;
  will-change: transform, opacity;
}
.text-inner {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* states set by JS */
.is-active   { opacity: 1; transform: translateX(0); }
.from-right  { transform: translateX(60px); }
.from-left   { transform: translateX(-60px); }
.exit-right  { opacity: 0; transform: translateX(60px); }
.exit-left   { opacity: 0; transform: translateX(-60px); }

/* responsive tweaks */
@media (max-width: 992px) {
  .service-sticky .pin { grid-template-columns: 1fr; gap: 20px; }
  .pin-left { height: 40vh; }
  .pin-left img { height: 40vh; }
  .pin-right { height: calc(100vh - 40vh - 40px); }
}

  :root{
    --ink:#f2f1ed; --muted:#7b7a7a; --bg:#0b0b0b; --line:#141313; --maxw:1100px;
  }
  *{box-sizing:border-box}
  html,body{height:100%}
  body{
    margin:0; background:var(--bg); color:var(--ink);
    font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    overflow-x:hidden; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
    scroll-behavior:smooth;
  }

  header.page{
    position:sticky; top:0; z-index:15; backdrop-filter:saturate(120%) blur(6px);
    background:rgba(10,10,10,.85);
  }
  header.page .title{max-width:var(--maxw); margin:auto; display:flex; align-items:center; gap:10px}
  header.page .title h1{font-family:Spectral,Georgia,serif; font-weight:600; font-size:20px; margin:0}
  header.page .title .muted{color:var(--muted); font-size:12px; letter-spacing:.12em; text-transform:uppercase}

  /* Section layout */
  section.scn{
    position:relative; min-height:99svh; min-height:99vh; display:grid; place-items:center; overflow:hidden;
    border-top:1px solid var(--line);
    isolation:isolate;
  }
  .gl{position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none;}
  .content{
    position:relative; z-index:2; text-align:center; padding:clamp(18px,4vw,40px); width:min(100%,var(--maxw));
  }
  .kicker{letter-spacing:.18em; text-transform:uppercase; color:var(--muted); font-size:.82rem}
  h2{font-family:Spectral,Georgia,serif; font-weight:600; font-size:clamp(28px,6vw,64px); margin:.1em 0 .25em}
  p.lead{max-width:70ch; margin-inline:auto; color:var(--muted); line-height:1.6}

  /* Gentle vignette over each section */
  .vignette{position:absolute; inset:-10%; pointer-events:none; z-index:1;
    background:
      rgba(0,0,0,.55);
  }

  /* Fallback badge per section */
  .fallback{display:none; position:absolute; inset:auto 16px 16px 16px; z-index:4;
    }
  .fallback.show{display:block}

 .wrap{inset:0}
  canvas.rvh{position:absolute; inset:0; width:100%; height:100%; display:block}
  .vignette{pointer-events:none; position:absolute; inset:-10%;
    background:
      radial-gradient(1400px 1000px at 60% 40%, rgba(255,255,255,.05), transparent 50%),
      radial-gradient(100% 100% at 50% 50%, rgba(0,0,0,0), rgba(0,0,0,.78));
    z-index:2;
  }
  .ui{
    position:absolute; left:50%; bottom:1rem; transform:translateX(-50%);
    font:600 11px/1 Inter,system-ui,sans-serif; letter-spacing:.14em; text-transform:uppercase;
    color:#cbd6e0; padding:.45rem .65rem; border-radius:10px; z-index:3;
    background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(6px) saturate(120%); pointer-events:none; user-select:none;
  }
  .bars::before, .bars::after{
    content:""; position:fixed; left:0; right:0; height:76px; background:#000; opacity:.7; z-index:3; pointer-events:none;
  }
  .bars::before{ top:0 } .bars::after{ bottom:0 }


@layer base, theme, layout, components, rail, anim, utilities;

/* ------------------------------ base -------------------------------- */
@layer base {
  :root {
    color-scheme: dark;
    /* Palette */
    --bg: #0b0f1a;
    --ink: #dbf0ff;
    --muted: #9fb7c7;
    --brand: #79d0ff;
    --accent: #6ff7e1;
    --card: #0e1524;
    --ring: color-mix(in oklab, var(--brand) 45%, transparent);
    --vignette: radial-gradient(1200px 600px at 50% 60%, rgba(121,208,255,.08), rgba(13,18,34,0) 60%);

    /* Rail + spine metrics */
    --rail-w: 78px;
    --rail-w-lg: 112px;
    --spine-x: clamp(200px, 18vw, 320px);

    /* Type scale */
    --fs-xxs: clamp(.72rem, .7vw, .78rem);
    --fs-xs:  clamp(.8rem,  .8vw, .9rem);
    --fs-sm:  clamp(.95rem, 1vw,  1rem);
    --fs-md:  clamp(1.1rem, 1.2vw, 1.125rem);
    --fs-lg:  clamp(1.5rem, 3.2vw, 2rem);
    --fs-xl:  clamp(1.75rem, 4vw,  2.6rem);

    /* Easing */
    --e-out: cubic-bezier(.2,.8,.2,1);
  }

  /* Progressive typographic niceties */
  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    text-wrap: pretty;
    accent-color: var(--brand);
  }
  @supports (font-variation-settings: normal) {
    body { font-variation-settings: "wght" 470, "opsz" 14; }
    .content h2 { font-variation-settings: "wght" 650, "opsz" 24; }
  }

  /* Smooth, balanced headings */
  h1,h2,h3 { text-wrap: balance; }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 12px; }
}

/* ------------------------------ theme ------------------------------- */
@layer theme {
  /* Cards & buttons */
  .content{
    position:relative;
    max-width:min(68ch,92vw);
    padding:clamp(24px,4vw,48px);
    margin:auto;
    margin-left: calc(var(--spine-x) + 84px); /* leave room for the dotted spine */
    border-radius: 24px;
    background: linear-gradient(180deg, color-mix(in oklab, var(--card) 90%, transparent), rgba(14,21,36,.38));
    box-shadow: 0 10px 40px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.06);
    backdrop-filter: blur(7px) saturate(1.05);
    container-type: inline-size; /* enables container queries below */
  }
  .content > *{ margin:0 0 .75rem 0 }
  .content .kicker{
    font-size: var(--fs-xs);
    letter-spacing:.16em; text-transform:uppercase;
    color: var(--accent); font-weight:600; opacity:.95
  }
  .content h2{ font-size:var(--fs-xl); line-height:1.15; margin-top:.25rem }
  .content .lead{ color: var(--muted) }

  .bullets{
    display:grid; gap:.45rem; padding:0; margin:1rem 0 0 0; list-style:none
  }
  .bullets li{
    display:grid; grid-template-columns:auto 1fr; gap:.6rem; align-items:start
  }
  .bullets li::before{
    content:"◆"; color:var(--brand); opacity:.9; transform:translateY(.15rem)
  }

  .cta{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1rem }
  .btn{
    --b: var(--brand);
    display:inline-flex; align-items:center; gap:.55rem;
    padding:.72rem 1rem; border-radius:14px;
    border:1px solid color-mix(in oklab, var(--b) 55%, transparent);
    color:var(--ink); text-decoration:none;
    background: linear-gradient(180deg, color-mix(in oklab, var(--b) 16%, #000) , rgba(255,255,255,.02));
    box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 0 0 0 var(--ring);
    transition: transform .25s var(--e-out), box-shadow .25s var(--e-out), border-color .25s var(--e-out);
  }
  .btn:hover{ transform:translateY(-2px); box-shadow:0 10px 28px rgba(0,0,0,.35), 0 0 0 6px var(--ring) }
  .btn--ghost{ --b: var(--accent); background:transparent }
  .btn .s{ font-weight:700 }
}

/* ------------------------------ layout ------------------------------ */
@layer layout {
  .scn{
    position:relative; min-height:100svh;
    display:grid; place-items:center;
    contain:layout paint;
    /* animated vars from JS */
    --t:0; --mx:0; --my:0;
  }
  .wrap{ position:relative; width:100%; height:100% }

  /* Canvas layers (kept names) */
  .gl,.rvh{ position:absolute; inset:0; width:100%; height:100%; display:block }
  .vignette{
    pointer-events:none; position:absolute; inset:0;
    background:var(--vignette); mix-blend-mode:screen; opacity:.7;
    transition: opacity .45s var(--e-out);
  }
  .ui{
    position:absolute; bottom:1rem; left:50%; transform:translateX(-50%);
    font-size:var(--fs-xs); color:var(--muted);
    background:rgba(14,21,36,.55); border:1px solid rgba(255,255,255,.06);
    backdrop-filter:blur(6px); padding:.45rem .7rem; border-radius:999px
  }

  /* Scroll-progress polish from JS vars */
  .scn .content{
    transform: translate3d(calc(var(--mx)*6px), calc(var(--my)*6px), 0)
               scale(calc(0.985 + var(--t)*0.02));
    opacity: calc(.42 + var(--t)*.6);
    transition: opacity .6s var(--e-out), transform .6s var(--e-out);
  }
  .scn.is-inview .vignette{ opacity:.9 }
  .scn:hover .vignette{ opacity:1 }

  /* reveal sequence */
  [data-animate]{ opacity:0; transform:translateY(18px) scale(.985); filter:blur(4px);
    transition: opacity .7s var(--e-out), transform .7s var(--e-out), filter .7s var(--e-out)
  }
  .is-inview [data-animate]{ opacity:1; transform:none; filter:none }
  .stagger > *{ opacity:0; transform:translateY(12px); transition:opacity .6s var(--e-out), transform .6s var(--e-out) }
  .is-inview .stagger > *{ opacity:1; transform:none }
  .is-inview .stagger > *:nth-child(1){ transition-delay:.05s }
  .is-inview .stagger > *:nth-child(2){ transition-delay:.12s }
  .is-inview .stagger > *:nth-child(3){ transition-delay:.18s }
  .is-inview .stagger > *:nth-child(4){ transition-delay:.24s }
  .is-inview .stagger > *:nth-child(5){ transition-delay:.30s }

  /* Fallback */
  .fallback{ color:#89a6b9; font-size:var(--fs-sm); margin-top:1rem; display:none }
  .no-webgl .fallback{ display:block }

  /* Container query: if the .content box is wide, increase radius and spacing */
  @container (min-width: 700px){
    .content{ border-radius:28px; padding: clamp(28px, 5vw, 56px); }
    .content h2{ font-size: clamp(2rem, 3.6vw, 3rem) }
  }
}

/* ------------------------------ rail & spine ------------------------ */
@layer rail {
  .rail{
    position:fixed; inset:0 auto 0 0; width:var(--rail-w); z-index:60;
    display:grid; grid-template-rows:auto 1fr auto;
    background:linear-gradient(180deg, rgba(14,21,36,.55), rgba(14,21,36,.35));
    border-right:1px solid rgba(255,255,255,.06);
    backdrop-filter:blur(6px);
    color:var(--ink);
    transition: width .25s var(--e-out);
  }
  .rail:hover{ width:var(--rail-w-lg); }
  .rail__brand{
    writing-mode: vertical-rl;  /* vertical writing */
    text-orientation: mixed;
    letter-spacing:.18em;
    padding:.8rem .4rem;
    font-size: var(--fs-xxs);
    font-weight:700; text-transform:uppercase;
    color:var(--muted);
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .rail__list{ list-style:none; margin:0; padding:.25rem 0; display:flex; flex-direction:column; gap:.25rem; overflow:auto; scrollbar-width:thin }
  .rail__item{ display:flex; align-items:center; justify-content:center; min-height:68px }
  .rail__btn{
    writing-mode: vertical-rl; text-orientation: mixed; /* vertical nav labels */
    text-decoration:none; color:var(--ink);
    font-size: var(--fs-xxs); letter-spacing:.1em; padding:.35rem .25rem;
    border-left:3px solid transparent; opacity:.6; transition:.2s var(--e-out);
  }
  .rail__index{ font-weight:700; margin-inline:.25rem; opacity:.6 }
  .rail__item.is-active .rail__btn{ opacity:1; border-left-color:var(--brand) }
  .rail__item:hover .rail__btn{ opacity:1; transform: translateX(1px) }

  .rail__meta{ display:grid; place-items:center; gap:.35rem; padding:.6rem 0; border-top:1px solid rgba(255,255,255,.06) }
  .rail__tic{ display:block; width:30px; height:2px; background:rgba(255,255,255,.12) }
  .rail__tic--mid{ width:40px }

  .timeline{ position:fixed; inset:0; pointer-events:none; z-index:50 }
  .timeline__line{
    position:absolute; top:0; bottom:0; left:var(--spine-x); width:2px;
    opacity:.6; filter:contrast(1.15) saturate(.7) opacity(.5);
    background-image: radial-gradient(var(--ink) 1px, transparent 1.6px);
    background-size: 2px 16px; background-repeat:repeat-y; background-position:center top;
    mask-image: linear-gradient(#0000, #000 10%, #000 90%, #0000);
  }
  .timeline__dot{
    --y:.2;
    position:absolute; left:calc(var(--spine-x) - 6px);
    top:calc(6svh + var(--y)*88svh);
    width:12px; height:12px; border-radius:50%;
    background:var(--brand);
    box-shadow:0 0 0 6px var(--ring), 0 6px 16px rgba(0,0,0,.35);
  }

  /* Big vertical scene label */
  .scn::before{
    content: attr(data-scene);
    position:absolute; left: calc(var(--spine-x) - 96px); top: 12svh;
    color: var(--muted); opacity:.22;
    font-size: clamp(2.2rem, 10vw, 6.2rem);
    writing-mode: vertical-rl; text-orientation: upright; /* modern vertical writing */
    letter-spacing:.05em; pointer-events:none;
    font-family: "Iowan Old Style","Times New Roman",serif;
  }

  /* Mobile */
  @media (max-width:900px){
    :root{ --rail-w: 0; --spine-x: 28px; }
    .rail{ display:none }
    .content{ margin-left: clamp(16px, 4vw, 32px); margin-right: 16px }
    .scn::before{ display:none }
    .timeline__line{ left:20px }
    .timeline__dot{ left:14px }
  }

  /* Thin, nice scrollbars (WebKit) */
  .rail__list::-webkit-scrollbar{ width:8px }
  .rail__list::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.1); border-radius:8px }
}

/* ------------------------------ animation helpers ------------------- */
@layer anim {
  /* register animatable custom props for smoother transitions */
  @property --t { syntax: "<number>"; inherits: true; initial-value: 0; }
  @property --mx{ syntax: "<number>"; inherits: true; initial-value: 0; }
  @property --my{ syntax: "<number>"; inherits: true; initial-value: 0; }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce){
    .scn .content,
    [data-animate],
    .stagger > * { transition-duration: .01ms !important; transition-delay: 0 !important; }
  }
}

/* ------------------------------ utilities --------------------------- */
@layer utilities {
  /* Vertical writing utilities you can apply anywhere */
  .vrl-upright { writing-mode: vertical-rl; text-orientation: upright; }
  .vrl-mixed   { writing-mode: vertical-rl; text-orientation: mixed; }
  .muted   { color: var(--muted) }
  .brand   { color: var(--brand) }
  .accent  { color: var(--accent) }
}
@layer rail {
  :root{
    /* live vars (JS updates) */
    --scroll: 0;                     /* 0→1 page progress */
    --rail-color: #79d0ff;           /* active section color */
  }

  .rail{                              /* transparent container */
    position: fixed; inset: 0 auto 0 18px; width: 14px; z-index: 90;
    pointer-events: none;             /* only dots are clickable */
  }
  .rail__progress{
    position: absolute; left: 6px; top: 6svh; bottom: 6svh; width: 2px;
  }
  .rail__track{
    position: absolute; inset: 0; border-radius: 2px;
    background: linear-gradient(to bottom, rgba(255,255,255,.18), rgba(255,255,255,.08));
  }
  .rail__fill{
    position: absolute; left: 0; right: 0; top: 0;
    height: calc(var(--scroll) * 100%); border-radius: 2px;
    background: var(--rail-color);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--rail-color) 22%, transparent);
    transition: background-color .35s ease;
  }

  .rail__dots{                         /* jump-to section dots */
    list-style: none; margin: 0; padding: 0;
    position: absolute; inset: 0; pointer-events: auto;
  }
  .rail__dots li{
    position: absolute; left: 50%; transform: translateX(-50%);
    top: calc(var(--pos) * 100%);    /* set by JS (0→1 along rail) */
  }
  .rail__dot{
    all: unset; cursor: pointer; width: 12px; height: 12px; border-radius: 50%;
    background: var(--c, #79d0ff);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--c) 26%, transparent);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    opacity: .85;
  }
  .rail__dot:hover{ transform: scale(1.15);
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--c) 18%, transparent);
  }
  .rail__dot[aria-current="true"]{ transform: scale(1.22); opacity: 1; }

  /* Optional tiny vertical label (no background) */
  .rail__label{
    position: absolute; left: 20px; top: 6svh; writing-mode: vertical-rl;
    text-orientation: mixed; letter-spacing: .18em; font-size: .72rem;
    color: color-mix(in oklab, var(--rail-color) 90%, #fff); opacity: .6;
    user-select: none; pointer-events: none;
  }

  /* Mobile: keep the same single line, hide dots if space is too tight */
  @media (max-width: 760px){
    .rail{ left: 10px }
    .rail__dot{ width: 10px; height: 10px }
    .rail__label{ display: none }
  }
}
/* ---- Content: transparent, modern type, readable on particles ---- */
:root{
  --ink:#e8f6ff;        /* body text */
  --muted:#a8c0d0;
  --headline:#f6fbff;
  --edge:rgba(0,0,0,.45);   /* subtle text shadow for contrast */
  --edge-strong:rgba(0,0,0,.60);
}

/* clear the card background + effects */
.content{
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  padding: clamp(20px,4vw,40px);    /* keep comfortable spacing */
}

/* crisp modern type with gentle glow for contrast */
.content .kicker{
  letter-spacing: .20em;
  color: color-mix(in oklab, var(--ink) 70%, var(--muted));
  text-shadow: 0 1px 0 var(--edge);
}
.content h2{
  color: var(--headline);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
  -webkit-text-stroke: .2px color-mix(in oklab, #fff 10%, transparent);
  text-shadow: 0 8px 40px rgba(0,0,0,.25), 0 1px 0 var(--edge-strong);
}
.content .lead{
  color: var(--muted);
  text-shadow: 0 1px 0 var(--edge);
}
.bullets li{ color: var(--ink); }
.bullets li::before{ opacity: .95 }

/* Buttons stay legible on transparent bg */
.btn{
  background: color-mix(in oklab, currentColor 5%, rgba(255,255,255,.02));
  border-color: color-mix(in oklab, var(--b) 65%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.btn--ghost{ background: transparent; }

/* ---- Rail v2: single hairline, thumb, ticks, hover labels (no bg) ---- */
@layer railv2 {
  :root{
    --rail-color:#79d0ff;             /* live: set by JS per section */
    --scroll:0;                        /* page progress (0→1) */
    --thumb:0;                         /* active section center (0→1) */
  }
  .rail{
    position: fixed; inset: 0 auto 0 clamp(10px,2vw,22px);
    width: 18px; z-index: 90; pointer-events: none;
  }
  .rail__progress{
    position: absolute; left: 8px; top: 6svh; bottom: 6svh; width: 2px;
  }
  /* hairline track */
  .rail__track{
    position: absolute; inset: 0; border-radius: 2px;
    background: linear-gradient(to bottom,
        rgba(255,255,255,.14), rgba(255,255,255,.06));
  }
  /* smooth fill */
  .rail__fill{
    position: absolute; left: 0; right: 0; top: 0;
    height: calc(var(--scroll) * 100%); border-radius: 2px;
    background: var(--rail-color);
    filter: drop-shadow(0 0 6px color-mix(in oklab, var(--rail-color) 40%, transparent));
    transition: background-color .35s ease;
  }
  /* moving thumb on the line */
  .rail__thumb{
    position: absolute; left: 50%; transform: translate(-50%, -50%);
    top: calc(var(--thumb) * 100%);
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--rail-color);
    box-shadow:
      0 0 0 3px color-mix(in oklab, var(--rail-color) 25%, transparent),
      0 0 22px color-mix(in oklab, var(--rail-color) 45%, transparent);
    transition: top .25s ease, background-color .35s ease;
  }
  /* micro ticks every ~12.5% */
  .rail__ticks{
    position: absolute; inset: 0;
    background:
      linear-gradient(to bottom,
        transparent calc(12.5% - 1px),
        rgba(255,255,255,.14) 0,
        transparent calc(12.5% + 1px)) repeat-y;
    background-size: 100% 12.5%;
    opacity: .35;
  }

  /* section jump dots with label tooltips (no bg) */
  .rail__dots{ list-style:none; margin:0; padding:0;
    position:absolute; inset:0; pointer-events:auto;
  }
  .rail__dots li{ position:absolute; left:50%; transform:translateX(-50%); top:calc(var(--pos) * 100%); }
  .rail__dot{
    all:unset; cursor:pointer; width:12px; height:12px; border-radius:50%;
    background: var(--c,#79d0ff);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--c) 26%, transparent);
    opacity:.9; transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  }
  .rail__dot:hover{ transform:scale(1.15); }
  .rail__dot[aria-current="true"]{ transform:scale(1.22); opacity:1; }

  /* label: appears on hover, vertical no background */
  .rail__tip{
    position: absolute; left: 24px; transform: translateY(-50%);
    top: var(--y,0px); color:#d9edf9; font-size:.72rem; letter-spacing:.12em;
    writing-mode: vertical-rl; text-orientation:mixed;
    opacity:0; transition:opacity .15s ease; pointer-events:none; user-select:none;
    text-shadow: 0 1px 0 rgba(0,0,0,.5);
  }
  .rail--showtip .rail__tip{ opacity: .75; }

  @media (max-width:760px){
    .rail{ left: 10px }
    .rail__tip{ display:none }
  }
}
/* ---- remove card feel / keep text crisp (already transparent) ---- */

/* move vignette away from the extreme left so the rail is always clear */
:root{ --rail-gutter: 48px; --rail-color:#8fd6ff; --scroll:0; --thumb:0; }
.vignette{ left: var(--rail-gutter) !important; right:0 !important }

/* hide the small helper UI chip */
.ui{ display:none !important }

/* ---------- Rail v3 (single color, no dots) ---------- */
.rail{
  position:fixed; inset:0 auto 0 0; width:var(--rail-gutter);
  z-index:90; pointer-events:none; contain:layout paint;
}
.rail__wrap{ position:absolute; top:clamp(8svh,72px,12svh); bottom:clamp(8svh,72px,12svh); left:22px; width:8px }
.rail__track{
  position:absolute; inset:0; margin:auto; width:2px; border-radius:2px;
}
.rail__fill{
  position:absolute; left:0; right:0; top:0; height:100%; transform-origin:0 0;
  transform: scaleY(var(--scroll)); border-radius:2px;
  background: var(--rail-color);
}
/* thumb: a single bead traveling the line */
.rail__thumb{
  position:absolute; left:50%; top:calc(var(--thumb)*100%);
  transform:translate(-50%,-50%); width:12px; height:12px; border-radius:50%;
  background:none;

}

/* micro ticks for modern "fillable tracking" */
.rail__ticks{
  position:absolute; inset:0; opacity:.35;
  background:
none;
  background-size:100% 10.5%;
}

/* vertical type label (sticky & typed) */
.rail__label{
  z-index: 999;
  position:absolute; left:calc(22px + 14px); top:50%; transform:translateY(-50%);
  writing-mode: vertical-rl; text-orientation:mixed;
  font: 600 .8rem/1.2 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  letter-spacing:.22em; color:#d9edf9; text-shadow:0 1px 0 rgba(0,0,0,.55);
  pointer-events:none; user-select:none; white-space:pre;
}
.rail__label--ghost{ opacity:.0; transition:opacity .25s ease; }

/* mobile: just keep the fill (label can feel cramped) */
@media (max-width:760px){
  .rail__label{ display:none }
  :root{ --rail-gutter: 28px }
}
/* ---- make rail + label render above any “glass” or vignette ---- */
.rail{
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 12000;        /* above cards/backdrops */
  isolation: isolate;    /* create a root stacking context for the rail */
  pointer-events: none;
}

/* canvases/vignette below UI so they never cover the rail */
.gl, .rvh{ z-index: -1; }     /* background only */
.vignette{ z-index: 5; }      /* below content and rail */
.content{ position: relative; z-index: 10; }  /* text above vignette */

/* the vertical label itself */
.rail__label{
  z-index: 99999;                         /* highest inside the rail */
  position: absolute;
  left: calc(22px + 14px);
  top: 50%;
  transform: translate3d(0,-50%,0);       /* promote to its own layer */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font: 600 .8rem/1.2 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  letter-spacing: .22em;
  color: #ffffff;
  pointer-events: none;
  user-select: none;
  white-space: pre;
  will-change: transform;
}

/* in case any section/card still has blur: make sure it can’t overlay the rail */
.content{
  -webkit-backdrop-filter: none !important; /* iOS/Safari */
  backdrop-filter: none !important;
}
:root{
  --rail-color:#79d0ff; /* will be updated by JS if you want */
  --scroll:0;           /* 0..1, page progress */
  --y:0;                /* 0..1, active section center in viewport */
}

/* Timeline pinned column */
.timeline{
  position: fixed;                 /* pinned (sticky effect) */
  inset: 8svh auto 6svh clamp(10px, 4vw, 56px);
  width: 14px;
  z-index: 50;
  pointer-events: none;
}
.timeline__line,
.timeline__dot{position:absolute; left:50%; transform:translateX(-50%);}

/* Track + fill (progress driven by --scroll) */
.timeline__line{
  top:0; bottom:0; width:2px;
}
.timeline__line::before,
.timeline__line::after{
  content:""; position:absolute; left:50%; transform:translateX(-50%);
  width:2px; border-radius:1px;
}
.timeline__line::before{ top:0; bottom:0; background:rgba(255,255,255,.15); }
.timeline__line::after{
  top:0; height:calc(100% * var(--scroll));
  background: var(--rail-color);
  will-change: height;
}

/* Dot follows current section center (driven by --y) */
.timeline__dot{
  top:0;
  width:12px; height:12px; border-radius:50%;
  translate: -50% calc( (var(--y) * 100%) - 50% );
  background: var(--rail-color);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--rail-color) 22%, transparent),
              0 8px 18px rgba(0,0,0,.35);
  will-change: translate, background;
}
:root{
  --fg:#e7eef7;
  --muted:#a6b0bf;
  --accent:#6df0ff;
  --bg:#0c121a;
  --card:#0f1723;
  --stickyTop: clamp(56px, 10svh, 120px);
}

html,body{margin:0;background:var(--bg);color:var(--fg);font-family:Inter,ui-sans-serif,system-ui,Segoe UI,Roboto,Arial,sans-serif}
*{box-sizing:border-box}
a{color:var(--accent);text-decoration:none}

.scn{
  position:relative;
  min-height:120svh;           /* each section gets room to breathe */
  scroll-snap-align:start;     /* nice section snapping feel */
  padding:6rem 1.25rem;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.scn .content{
  position:sticky;             /* keeps the text pinned while you scroll the scene */
  top:var(--stickyTop);
  max-width:1100px;
  margin:0 auto;
  will-change:transform;
}

.kicker{
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent);
  font-weight:700;
  opacity:.9;
  margin:0 0 .5rem;
}

h2{
  margin:.25rem 0 .75rem;
  line-height:1.12;
  font-size:clamp(1.6rem,3.6vw,2.6rem);
  background:linear-gradient(92deg, #d9e9ff 0%, #8be8ff 50%, #62ffd8 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.lead{
  color:var(--muted);
  max-width:72ch;
  font-size:clamp(1rem,1.2vw,1.125rem);
  margin:0 0 .75rem;
}

.bullets{
  margin:1rem 0 1.25rem;
  padding-left:1.2rem;
  display:grid;
  gap:.5rem;
}
.bullets li{margin-left:.25rem}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.75rem 1rem;border-radius:.75rem;
  background:var(--accent);color:#041318;font-weight:800;
}
.btn--ghost{
  background:transparent;border:1px solid rgba(255,255,255,.2);color:var(--fg)
}

/* Initial states for animated text */
.scn .kicker,
.scn h2,
.scn .lead,
.scn .bullets li{
  opacity:0;
  transform:translateY(18px);
}

/* When JS toggles .in */
.scn .kicker.in,
.scn h2.in,
.scn .lead.in,
.scn .bullets li.in{
  opacity:1;
  transform:none;
}

/* Reduced motion: show content instantly */
@media (prefers-reduced-motion: reduce){
  .scn .kicker,
  .scn h2,
  .scn .lead,
  .scn .bullets li{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
  }
}
/* Screenshot-style sticky display dock
   - Left: HUGE uppercase title + lead + email row
   - Right: "Our Best Projects" list with diamond on first item
   - Stays within the .scn scope (use with the #scnScope/#textDock HTML you have)
*/

/* Scene host + layers */
.dots3d-wrap { position: relative; }
.dots3d-wrap .dots-split-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, #ffffff 0 50%, #000000 50% 100%);
}
.dots3d-wrap canvas.dots3d-canvas {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  display: block; pointer-events: none; filter: contrast(105%);
}
.dots3d-wrap .dots-fade-black {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:#000; opacity: 0; /* JS drives this to 1 near section end */
  transition: opacity .2s linear;
}
/* soft vignette for depth */
.dots3d-wrap .dots-vignette {
  position: absolute; inset: -10%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1400px 900px at 60% 45%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(100% 100%, rgba(0,0,0,0), rgba(0,0,0,.70));
}

/* keep your real content on top (sticky in your layout already) */
#features > .container,
#service  > .container { position: relative; z-index: 2; }
/* Make both sections layer-friendly */
.hero, .features {
  position: relative;
  overflow: clip;
}

/* RVH canvases: full-bleed + B&W */
.hero .rvh,
.features .rvh {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  /* Black & white look */
  filter: grayscale(1) contrast(1.12);
}

/* Dots scene in Features: also B&W; keep it subtle under RVH */
.features .dots3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;               /* sits with RVH below content */
  pointer-events: none;
  filter: grayscale(1) contrast(1.06);
  opacity: 0.75;            /* set to 0 if you want to hide dots entirely */
}

/* Vignettes match in both sections */
.hero .vignette,
.features .vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
              rgba(0,0,0,0) 36%,
              rgba(0,0,0,0.55) 100%);
}

/* Keep actual content above the fx layers */
.hero .container,
.features > .container {
  position: relative;
  z-index: 2;
}

/* ====== 3-COLUMN LEFT HEADER (NAV | RAIL | TIMELINE) ====== */
:root{
  --col-nav:  120px;   /* Navbar column width */
  --col-rail: 70px;   /* Rail column width   */
  --col-tl:     1px;  /* Timeline width      */
  --col-gap:    0px;  /* Gap between cols    */
  --headerW: 200px;
}

/* Make the header a fixed vertical panel on the left */
.header.header--left.three-cols{
  position: fixed;
  inset: 0 auto 0 0;     /* top/right/bottom/left */
  width: 210px;
  height: 100svh;
  z-index: 50;
  background: transparent;
}

/* Lay out the three columns */
.header.header--left.three-cols .header__inner{
  display: grid;
  grid-template-columns: var(--col-nav) var(--col-rail) var(--col-tl);
  gap: 0;
  height: 100%;
}

/* [1] NAV column */
.header.header--left.three-cols .row--nav{
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: auto;
  padding: 12px;
  /* optional glass look; tweak/remove if you want */
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,.18);
  border-right: 1px solid rgba(255,255,255,.08);
}

/* Make the navbar behave inside the column (not absolute dropdown) */
.header.header--left.three-cols .navbar{
  position: static;
  width: auto;
  padding: 0;
  visibility: visible;
  background: transparent;
}
.header.header--left.three-cols .navbar-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.header.header--left.three-cols .nav-toggle-btn{ display: none !important; } /* no burger needed */

/* [2] RAIL column */
.header.header--left.three-cols .railcol{
  position: relative;
  overflow: hidden;       /* we scroll the inner list via JS translate */
  padding: 12px 0;
  border-right: 1px solid rgba(255,255,255,.08);
}
.header.header--left.three-cols .rail__list{
  height: 100%;
  will-change: transform;
}

/* [3] TIMELINE column */
.header.header--left.three-cols .timelinecol{ position: relative; }
.header.header--left.three-cols .tl{
  position: absolute;
  top: 6svh; bottom: 6svh;
  left: 50%; transform: translateX(-50%);
  width: 4px;
}
.header.header--left.three-cols .tl__track{
  position: absolute; inset: 0;
  background: rgba(255,255,255,.14);
}
.header.header--left.three-cols .tl__fill{
  position: absolute; left: 0; right: 0; top: 0;
  height: 0;                 /* JS sets this */
  background: #79d0ff;
}
.header.header--left.three-cols .tl__dot{
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  top: 0;                     /* JS moves this */
  width: 10px; height: 10px; border-radius: 50%;
  background: #79d0ff;
  box-shadow: 0 0 0 3px rgba(121,208,255,.25);
}

/* Push page content to the right of the fixed header */
body{ padding-left: var(--headerW); }

/* Narrow screens: collapse columns into one (optional) */
@media (max-width: 900px){
  :root{ --col-nav: 220px; --col-rail: 0px; --col-tl: 56px; --col-gap: 8px; }
  .header.header--left.three-cols .railcol{ display: none; } /* hide rail on small screens */
}
/* --- place columns explicitly (in case DOM order changes) --- */

.header.header--left.three-cols .timelinecol{ grid-column: 1; }
.header.header--left.three-cols .row--nav   { grid-column: 2; }

/* --- shrink timeline column --- */
:root{
  --col-tl: 46px;                  /* was 72px */
}
.header.header--left.three-cols .tl{ width: 2px; }        /* thinner track */
.header.header--left.three-cols .tl__dot{ width: 8px; height: 8px; }

/* --- icon-only navbar --- */
.header.header--left.three-cols .row--nav{
  gap: 5px;
  padding: 1px;
  overflow-x: hidden;
}
.nav-icons{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-icons .navbar-link ion-icon{ font-size: 22px; }
.nav-icons .navbar-link:hover{
  transform: translateY(-1px);
  background: rgba(121,208,255,.10);
  border-color: rgba(121,208,255,.35);
}

/* --- TRAIL becomes horizontal, auto scrollable --- */
.header.header--left.three-cols .railcol{
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 6px;
  scrollbar-width: none;          /* Firefox */
}
.header.header--left.three-cols .railcol::-webkit-scrollbar{ display: none; } /* WebKit */

.header.header--left.three-cols #railList{
  display: inline-flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
  padding: 0 6px;
  height: 100%;
}

.rail__item{ flex: 0 0 auto; }
.rail__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font: 600 11px/1.1 Inter,system-ui;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(200,230,255,.75);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.rail__btn .rail__index{ opacity: .55; margin-right: 2px; }
.rail__item.is-active .rail__btn{
  color: #cfe9ff;
  background: rgba(121,208,255,.10);
  border-color: rgba(121,208,255,.35);
}

:root { --col-tl: 40px; }                   
.header.header--left.three-cols .tl      { width: 2px; }
.header.header--left.three-cols .tl__dot { width: 8px; height: 8px; }

.row--nav { padding: 8px; gap: 8px; }
.nav-icons{
  display:flex; flex-direction:column; gap:12px;
}
.nav-icons .navbar-link{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px;
  width:68px; min-height:68px; padding:8px 6px;
  border-radius:14px;
  color:#cfe9ff; text-decoration:none;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  transition:transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.nav-icons .navbar-link ion-icon{ font-size:22px; line-height:1; }
.nav-icons .navbar-link .label{
  font:600 10px/1.1 Inter,system-ui;
  letter-spacing:.04em; text-transform:uppercase; opacity:.9;
}

/* Hover/Focus */
.nav-icons .navbar-link:hover,
.nav-icons .navbar-link:focus-visible{
  transform:translateY(-1px);
  background:rgba(121,208,255,.10);
  border-color:rgba(121,208,255,.35);
  outline:none;
}

.nav-icons .navbar-link.is-home{
  color:#07263a;
  background:linear-gradient(180deg,#9de6ff,#72d3ff);
  border-color:transparent;
  box-shadow:0 6px 18px rgba(121,208,255,.25), inset 0 0 0 1px rgba(255,255,255,.28);
}
.nav-icons .navbar-link.is-home ion-icon{ color:#ffffff; }
.nav-icons .navbar-link.is-home .label{ color:#ffffff; }

.nav-icons .navbar-link[aria-current="true"]{
  background:rgba(121,208,255,.12);
  border-color:rgba(121,208,255,.35);
  color:#e7f6ff;
}

/* Keep the left column tidy */
.header.header--left.three-cols .row--nav{
  position: relative;
  overflow-x: hidden;              /* kill horizontal scroll */
  /* already column flex; leave as-is */
}

/* tighten the top icon grid a bit */
.nav-icons{ gap: 8px; }

/* --- Bottom quick actions --- */
.header.header--left.three-cols .nav-bottom{
  margin-top: auto;                /* push to bottom if space allows */
  position: sticky;                /* pin to bottom when column scrolls */
  bottom: 6px;
  padding-top: 8px;
  background: linear-gradient(to top, rgba(0,0,0,.10), transparent);
}

.nav-actions{
  display: grid;
  grid-template-columns: 1fr;      /* stack vertically */
  gap: 8px;
  padding: 0;
}

.nav-actions .action-link{
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  min-height: 60px; width: 100%;
  border-radius: 1px;
  color: #cfe9ff; text-decoration: none;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255, 255, 255, 0.76);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.nav-actions .action-link:hover,
.nav-actions .action-link:focus-visible{
  transform: translateY(-1px);
  outline: none;
}

.nav-actions .action-link ion-icon{ font-size: 22px; line-height: 1; }
.nav-actions .action-link .label{
  font: 600 10px/1.1 Inter, system-ui;
  letter-spacing: .04em; text-transform: uppercase; opacity: .95;
}

/* make the “client magnet” pop a bit */
.nav-actions .action-hot{
  background: linear-gradient(180deg, #9de6ff, #72d3ff);
  color: #07324b; border-color: transparent;
  box-shadow: 0 6px 18px rgba(121,208,255,.25), inset 0 0 0 1px rgba(255,255,255,.28);
}
.nav-actions .action-hot:hover{ filter: brightness(1.05); }

/* Mobile: follow your prior rule—hide the side stuff */
@media (max-width: 900px){
  .header.header--left.three-cols .nav-bottom{ display: none; }
}
/* --- Main icon nav: rectangular tiles, full width --- */
:root{
  --nav-h:        56px;   /* base height for items */
  --nav-h-hover:  64px;   /* height on hover/focus */
  --nav-h-active: 78px;   /* height for current page */
  --nav-div: rgba(255,255,255,.12); /* divider color */
}

/* container: no x-scroll, stack vertically, no gaps so dividers touch */
.header.header--left.three-cols .row--nav{
  overflow-x: hidden;
}
.nav-icons{
  display: flex;
  flex-direction: column;
  gap: 0; /* dividers will separate items */
  padding: 0;
  margin: 0;
}

/* dividers only (top on each li; bottom on last) */
.nav-icons > li{
  border-top: 1px solid var(--nav-div);
}
.nav-icons > li:last-child{
  border-bottom: 1px solid var(--nav-div);
}

/* tiles: rectangular, full width; no borders or radius */
.nav-icons .navbar-link{
  width: 100%;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;           /* keep icon on top, label under */
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: transparent;          /* no box border */
  border: 0;
  border-radius: 0;
  color: #cfe9ff;
  text-decoration: none;
  transition: height .22s var(--e-out), background-color .18s ease, color .18s ease, transform .18s ease;
  will-change: height, background-color;
}

/* icon + label sizes */
.nav-icons .navbar-link ion-icon{ font-size: 22px; line-height: 1; }
.nav-icons .navbar-link .label{
  font: 600 10px/1.1 Inter, system-ui;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .95;
}

/* hover: grow height a bit (rect stays full width) */
.nav-icons .navbar-link:hover,
.nav-icons .navbar-link:focus-visible{
  height: var(--nav-h-hover);
  outline: none;
  background: rgba(121,208,255,.08);
}

/* current page: tallest */
.nav-icons .navbar-link[aria-current="page"],
.nav-icons .navbar-link.is-current,
.nav-icons .navbar-link.is-home{  /* fallback to your existing class */
  height: var(--nav-h-active);
  background: rgba(121,208,255,.12);
  color: #e7f6ff;
}

/* remove any old rounded/box styles that might linger */
.nav-icons .navbar-link.is-home{
  box-shadow: none !important;
  border-color: transparent !important;
  background-image: none !important;
}
/* === Rectangular tile nav (TOP navbar only) ===================== */
:root{
  --nav-rect-h:        56px;   /* base height for items */
  --nav-rect-hover:    64px;   /* height on hover/focus */
  --nav-rect-active:   78px;   /* height for current page */
  --nav-rect-divider:  rgba(0,0,0,.10); /* between-item divider on white BG */
}

/* Scope to the top navbar only, not the .nav-bottom quick actions */
.header .navbar:not(.nav-bottom) .navbar-list.nav-icons{
  display: flex;
  flex-direction: column;
  gap: 0;                 /* dividers provide separation */
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Only dividers between items: top on each <li>, bottom on last */
.header .navbar:not(.nav-bottom) .nav-icons > li{
  list-style: none;
  border-top: 1px solid var(--nav-rect-divider);
}
.header .navbar:not(.nav-bottom) .nav-icons > li:last-child{
  border-bottom: 1px solid var(--nav-rect-divider);
}

/* Rectangular tiles: full width, fixed height; no side borders or radius */
.header .navbar:not(.nav-bottom) .nav-icons .navbar-link{
  width: 100%;
  height: var(--nav-rect-h);
  display: flex;
  flex-direction: column;          /* icon above label */
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: transparent;         /* keep background clean */
  border: 0;
  border-radius: 0;
  text-decoration: none;
  color: rgb(89,185,185);          /* your existing color */
  transition: height .22s ease, background-color .18s ease, color .18s ease;
  will-change: height, background-color;
}

/* Icon + label sizing */
.header .navbar:not(.nav-bottom) .nav-icons .navbar-link ion-icon{
  font-size: 22px; line-height: 1;
}
.header .navbar:not(.nav-bottom) .nav-icons .navbar-link .label{
  font: 600 10px/1.1 Inter, system-ui;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Hover: height grows (width stays the same) */
.header .navbar:not(.nav-bottom) .nav-icons .navbar-link:hover,
.header .navbar:not(.nav-bottom) .nav-icons .navbar-link:focus-visible{
  height: var(--nav-rect-hover);
  background: rgba(0,0,0,.04);   /* subtle hover */
  outline: none;
}

/* Current page: tallest */
.header .navbar:not(.nav-bottom) .nav-icons .navbar-link[aria-current="page"],
.header .navbar:not(.nav-bottom) .nav-icons .navbar-link[aria-current="true"],
.header .navbar:not(.nav-bottom) .nav-icons .navbar-link.is-current{
  height: var(--nav-rect-active);
  background: rgba(0,0,0,.06);
  color: #ffffff; /* darker ink for emphasis on active */
}

/* Kill any legacy rounded/box styles that might linger on the home link */
.header .navbar:not(.nav-bottom) .nav-icons .navbar-link.is-home{
  box-shadow: none !important;
  border-color: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
}
.service-sticky{ position:relative; height: 450vh; margin-block: var(--section-padding) }
.service-sticky .pin{
  position: sticky; top: 0; height: 100vh;
  display:grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items:center;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0));
  padding-inline: clamp(12px, 3vw, 24px);
  z-index: 99999;
  overflow:hidden;
}
.pin-left{ align-self:center }
.pin-left img{
  width: 100%; height: 80vh; object-fit: cover; object-position: center;
  border-radius: 12px; border:1px solid var(--line-soft); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: opacity .6s ease, transform .6s ease;
}
.pin-right{ position:relative; height: 70vh }
.stage{
  position:absolute; inset:0; display:flex; align-items:center;
  opacity:0; transform: translateY(12px);
  transition: opacity 450ms ease, transform 450ms ease; will-change: transform, opacity;
}
.stage.is-active{ opacity:1; transform: translateY(0) }
.stage.from-left{ transform: translateX(-40px); opacity:.2 }
.stage.from-right{ transform: translateX(40px); opacity:.2 }
.stage.exit-left{ transform: translateX(-40px); opacity:0 }
.stage.exit-right{ transform: translateX(40px); opacity:0 }

.text-inner{
  background: rgba(0,0,0,.55);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
}
.text-inner .section-subtitle{ margin-bottom:.25rem }
.text-inner .h2{ margin-block:.2rem .6rem }
.text-inner .section-text{ color: var(--black-coral) }
/* ROOT TOKENS (adjust to your palette) */
:root {
  --hero-grad-1: #0b102073;
  --hero-grad-2: #311f5f5b;
  --hero-grad-3: #ff620050;
  --hero-accent: #00eeff56;
  --hero-soft: rgba(15, 23, 42, 0.6);
}

/* ---------------------------------------------------
   HERO WRAPPER – horizontal layout + gradient
--------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 7vw, 6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  color: #f9fafb;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.08) 0, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(255, 255, 255, 0.06) 0, transparent 45%),
    linear-gradient(120deg, var(--hero-grad-1), var(--hero-grad-2), var(--hero-grad-3));
}

/* soft grainy gradient overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 240, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.12), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
}

/* diagonal decorator stripe */
.hero::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -30%;
  width: 55%;
  height: 140%;
  background: linear-gradient(
    140deg,
    transparent 0 25%,
    rgba(0, 240, 255, 0.18) 45%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 80%
  );
  opacity: 0.8;
  filter: blur(12px);
  pointer-events: none;
}

/* ---------------------------------------------------
   LEFT SIDE – text column
--------------------------------------------------- */

.hero-left {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

/* small gradient bar above kicker */
.hero-left::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00eeff6b, #38bff863, #a955f75b);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.9);
}

/* circular decorator behind heading */
.hero-left::after {
  content: "";
  position: absolute;
  top: -4rem;
  left: -4rem;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25), transparent 60%);
  filter: blur(4px);
  opacity: 0.85;
  pointer-events: none;
}

/* kicker / sub-label */
.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 0.9rem;
}

/* reuse your heading, but make it horizontal-friendly */
.h1,
.h2,
.h3 {
  color: #f9fafb;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 0 25px rgba(0, 0, 0, 0.85),
    0 4px 18px rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.4rem;
    color: #f9fafb;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 0 25px rgba(0, 0, 0, 0.85),
    0 4px 18px rgba(0, 0, 0, 0.6);
}

.section-text {
  color: rgba(226, 232, 240, 0.88);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 1.8rem;
  max-width: 36rem;
  text-shadow: 0 0 16px rgba(15, 23, 42, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------------------------------------------------
   BUTTONS – gradient + pill
--------------------------------------------------- */

.btn {
  --btn-bg: linear-gradient(135deg, #00f0ff, #00c2ff);
  --btn-bg-hover: linear-gradient(135deg, #33f6ff, #26d4ff);

  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.32);
  background: var(--btn-bg);
  color: #020617;

  box-shadow:
    0 12px 35px rgba(15, 23, 42, 0.9),
    0 0 18px rgba(56, 189, 248, 0.75);

  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.btn:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px) translateZ(0);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.95),
    0 0 26px rgba(56, 189, 248, 0.95);
  border-color: rgba(248, 250, 252, 0.6);
}

.btn:active {
  transform: translateY(0);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.9),
    0 0 18px rgba(56, 189, 248, 0.7);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.65);
  color: #e5f3ff;
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.95);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(226, 232, 240, 0.95);
}

/* ---------------------------------------------------
   RIGHT SIDE – card with its own gradient + decorators
--------------------------------------------------- */

.hero-card {
  position: relative;
  z-index: 1;
  min-width: min(280px, 32vw);
  max-width: 360px;
  padding: 1.6rem 1.8rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8)),
    radial-gradient(circle at 0 0, rgba(0, 240, 255, 0.18), transparent 60%);
  border: 1px solid rgba(148, 163, 184, 0.65);
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.95),
    0 0 38px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
}

/* top tab decorator */
.hero-card::before {
  content: "New Service";
  position: absolute;
  top: -0.9rem;
  left: 1.6rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.9);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.8);
}

/* glowing corner dot */
.hero-card::after {
  content: "";
  position: absolute;
  bottom: 1.1rem;
  right: 1.1rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--hero-accent), transparent 60%);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.9);
}

.hero-card-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.hero-card-sub {
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.95);
}

/* ---------------------------------------------------
   RESPONSIVE – stack vertically on small screens
--------------------------------------------------- */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-card {
    align-self: stretch;
    max-width: none;
  }
}
/* CTA ROW ----------------------------------------------------- */

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

/* Main + secondary buttons (Netflix style) */

.hero-btn-main {
  background: #ffffff;
  color: #020617;
  padding-inline: 1.9rem;
}

.hero-btn-main ion-icon {
  font-size: 1.1rem;
}

/* outline button like "DETAILS" */

.btn.btn-outline.hero-btn-secondary {
  background: transparent;
  color: #f9fafb;
  padding-inline: 1.8rem;
  border: 1px solid rgba(248, 250, 252, 0.7);
}

.btn.btn-outline.hero-btn-secondary:hover {
  background: rgba(15, 23, 42, 0.35);
}

/* THREE DOT MENU ---------------------------------------------- */

.hero-menu {
  position: relative;
}

/* round icon button with 3 dots */

.hero-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.7);
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease,
              box-shadow 160ms ease, border-color 160ms ease;
              clip-path: polygon(
    8% 0,
    100% 0,
    100% 75%,
    92% 100%,
    0 100%,
    0 18%
  );
}

.hero-menu-toggle .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f9fafb;
}

.hero-menu-toggle:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

/* PANEL -------------------------------------------------------- */

.hero-menu-panel {
  position: absolute;
  top: 115%;
  right: 0;
  min-width: 260px;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 20;
}

/* open state toggled by JS */
.hero-menu.is-open .hero-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* root list */

.hero-menu-root {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.hero-menu-root > li > a,
.hero-menu-root > li > button.menu-parent {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.hero-menu-root > li > a:hover,
.hero-menu-root > li > button.menu-parent:hover {
  background: rgba(30, 64, 175, 0.5);
}

/* SUBMENUS (on hover for desktop) ----------------------------- */

.hero-menu-sub {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.35rem 0.4rem 0.45rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  display: none;
}

.hero-menu-sub li a {
  display: block;
  padding: 0.25rem 0.3rem;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.98);
  text-decoration: none;
}

.hero-menu-sub li a:hover {
  color: #ffffff;
}

/* show sub on hover (desktop) */
.hero-menu-root > li.has-sub:hover > .hero-menu-sub {
  display: block;
}

/* small screens: make the panel full width if needed */
@media (max-width: 600px) {
  .hero-menu-panel {
    right: auto;
    left: 0;
    min-width: 220px;
  }
}
.h1,
.h2,
.h3 {
  color: #f9fafb;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 0 25px rgba(0, 0, 0, 0.85),
    0 4px 18px rgba(0, 0, 0, 0.6);
}

/* Base (tablet/desktop) */
.h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  margin-bottom: 1.4rem;
}

.section-text {
  color: rgba(226, 232, 240, 0.88);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 1.8rem;
  max-width: 36rem;
  text-shadow: 0 0 16px rgba(15, 23, 42, 0.9);
}

/* Small screens */
@media (max-width: 600px) {
  .h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    letter-spacing: 0.04em;
  }

  .section-text {
    font-size: 0.95rem;
    max-width: 90vw;
  }
}

/* Large desktop / big screens */
@media (min-width: 1440px) {
  .h1 {
    font-size: 5.4rem;
    max-width: 22ch;
  }

  .section-text {
    font-size: 1.05rem;
    max-width: 40rem;
  }
}
/* Let the dropdown escape the hero section */
.hero,
.hero-content,
.hero-actions {
  overflow: visible !important;
  position: relative; /* ensure a sane stacking context */
  z-index: 1;
}
.hero-inner,
.hero-grid {
  overflow: visible !important;
}
.hero-menu-panel {
  position: absolute;
  top: calc(100% + 0.55rem);  /* instead of top:115%; */
  right: 0;

  min-width: 260px;
  padding: 1rem 1.1rem;
  border-radius: 16px;

  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.184), rgba(15, 23, 42, 0.381)),
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.35), transparent 55%);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.98),
    0 0 30px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(18px) saturate(130%);
  overflow: hidden;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transform-origin: top right;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 40;
}
.hero-menu.is-flip .hero-menu-panel {
  top: auto;
  bottom: calc(100% + 0.55rem);
  transform-origin: bottom right;
}
/* Make sure hero stuff doesn't cut the menu */
.hero,
.hero-content,
.hero-actions {
  position: relative;
  overflow: visible;
  z-index: 1;
}

/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-btn-main {
  background: #ffffff;
  color: #020617;
  border-radius: 0px;
  padding-inline: 1.9rem;
  position: relative;
  min-width: 260px;
  padding: 1rem 1.1rem;
  /* cyberpunk angled block */
  clip-path: polygon(
    8% 0,
    100% 0,
    100% 75%,
    92% 100%,
    0 100%,
    0 18%
  );
  background:
    radial-gradient(circle at 0% 0%, rgba(129, 230, 217, 0.26), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.33), transparent 55%),
    linear-gradient(135deg, #adafb7, #f5f6fa 40%, #ffffff00 60%, #cad1f2 100%);
  border: 1px solid rgba(148, 163, 184, 0.9);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.95),
    0 0 32px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px) saturate(145%);
  overflow: visible;
  transform-origin: top right;
}

.hero-btn-main ion-icon {
  font-size: 1.1rem;
}
.hero-btn-main:hover {
  background:
  radial-gradient(circle at 0% 0%, transparent 55%, rgba(129, 230, 217, 0.26)),
  radial-gradient(circle at 100% 100%, transparent 55%, rgba(59, 130, 246, 0.33)),
  /* 135deg + 180° = 315deg, colors reversed */
  linear-gradient(
    315deg,
    #cad1f2,
    #ffffff00 40%,
    #f5f6fa 60%,
    #adafb7 100%
  );


}
.btn.btn-outline.hero-btn-secondary {
  background: transparent;
  color: #f9fafb;
  border-radius: 0px;
  padding-inline: 1.8rem;
  border: 1px solid rgba(248, 250, 252, 0.7);
  clip-path: polygon(
    8% 0,
    100% 0,
    100% 75%,
    92% 100%,
    0 100%,
    0 18%
  );
   box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.95),
    0 0 32px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px) saturate(145%);
  overflow: visible;
  transform-origin: top right;
}

.btn.btn-outline.hero-btn-secondary:hover {
  background: rgba(15, 23, 42, 0.35);
}

/* ─────────────────────────────────────────────
   THREE DOT TOGGLE – more “circuit” look
────────────────────────────────────────────── */

.hero-menu {
  position: relative;
}

.hero-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 10px 30px rgba(15, 23, 42, 0.9);
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
  position: relative;
  overflow: hidden;
}

.hero-menu-toggle::before {
  /* faint rotating ring */
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px dashed rgba(56, 189, 248, 0.55);
  opacity: 0.0;
  transform: scale(0.9);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-menu-toggle .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e5f3ff;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.9);
}

.hero-menu-toggle:hover {
  background: radial-gradient(circle at 30% 20%, #111827, #020617);
  border-color: rgba(248, 250, 252, 0.9);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.6),
    0 12px 36px rgba(15, 23, 42, 0.96),
    0 0 24px rgba(56, 189, 248, 0.9);
  transform: translateY(-1px);
}

.hero-menu-toggle:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ─────────────────────────────────────────────
   MAIN PANEL – circuit board glass
────────────────────────────────────────────── */

.hero-menu-panel {
  position: absolute;
  top: 115%;
  right: 0;
  min-width: 260px;
  padding: 0; /* shell handles padding */
  border-radius: 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  z-index: 40;
  overflow: visible; /* let submenus spill outside */
}

/* flip above when JS adds .is-flip */
.hero-menu.is-flip .hero-menu-panel {
  top: auto;
  bottom: 115%;
}

/* opened by JS */
.hero-menu.is-open .hero-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* inner glass “PCB” shell */
.hero-menu-shell {
  position: relative;
  min-width: 260px;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.28), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.84));
  border: 1px solid rgba(148, 163, 184, 0.75);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.98),
    0 0 34px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px) saturate(135%);
  overflow: visible;
}

/* PCB grid lines */
.hero-menu-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      to right,
      rgba(51, 65, 85, 0.45) 0,
      rgba(51, 65, 85, 0.45) 1px,
      transparent 1px,
      transparent 10px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(30, 64, 175, 0.45) 0,
      rgba(30, 64, 175, 0.45) 1px,
      transparent 1px,
      transparent 10px
    );
  opacity: 0.25;
  pointer-events: none;
}

/* animated scanning highlight */
.hero-menu-shell::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at 0 0, rgba(125, 211, 252, 0.4), transparent 55%);
  opacity: 0.0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: pcbSweep 4.5s linear infinite;
}

/* scan animation */
@keyframes pcbSweep {
  0% {
    transform: translate(-20%, -20%);
    opacity: 0;
  }
  20% {
    opacity: 0.22;
  }
  60% {
    transform: translate(35%, 35%);
    opacity: 0.18;
  }
  100% {
    transform: translate(80%, 80%);
    opacity: 0;
  }
}

/* ─────────────────────────────────────────────
   ROOT MENU ITEMS – lines + nodes
────────────────────────────────────────────── */

.hero-menu-root {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.2rem;
  display: grid;
  gap: 0.35rem;
}

.hero-menu-root > li {
  position: relative;
  padding-left: 1.25rem; /* space for “trace” */
}

/* vertical “trace” on the left */
.hero-menu-root > li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.2rem;
  bottom: 0.2rem;
  border-left: 1px solid rgba(51, 65, 85, 0.8);
}

/* node at the middle */
.hero-menu-root > li::after {
  content: "";
  position: absolute;
  left: 0.11rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 1), rgba(15, 23, 42, 1));
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  opacity: 0.7;
  transition: opacity 140ms ease, transform 140ms ease;
}

/* main clickable row */
.hero-menu-root > li > a,
.hero-menu-root > li > button.menu-parent {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 0;
  background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.15), transparent 65%);
  color: rgba(226, 232, 240, 0.96);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.hero-menu-root > li > a:hover,
.hero-menu-root > li > button.menu-parent:hover {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.85), rgba(37, 99, 235, 0.9));
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.5),
    0 8px 24px rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

/* node pulse on hover */
.hero-menu-root > li:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}

/* small chevron on items with submenu */
.hero-menu-root > li.has-sub > button.menu-parent::after,
.hero-menu-root > li.has-sub > a::after {
  content: "›";
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ─────────────────────────────────────────────
   SUBMENUS – fly out like side PCB
────────────────────────────────────────────── */

@media (min-width: 768px) {
  .hero-menu-root > li.has-sub {
    position: relative;
  }

  .hero-menu-sub {
    position: absolute;
    top: 0.1rem;
    left: calc(100% + 0.55rem);   /* default: right */
    right: auto;
    min-width: 220px;

    list-style: none;
    margin: 0;
    padding: 0.4rem 0.45rem 0.5rem;
    border-radius: 14px;
    background:
      radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.3), transparent 55%),
      linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(51, 65, 85, 0.95);
    box-shadow:
      0 18px 45px rgba(15, 23, 42, 0.95),
      0 0 26px rgba(15, 23, 42, 0.85);
    display: none;
    z-index: 50;
    overflow: hidden;
  }

  /* when JS adds .align-left */
  .hero-menu-sub.align-left {
    left: auto;
    right: calc(100% + 0.55rem);
  }

  .hero-menu-root > li.has-sub:hover > .hero-menu-sub {
    display: block;
    animation: submenuSlide 0.18s ease-out;
  }
}

/* submenu slide-in */
@keyframes submenuSlide {
  from {
    opacity: 0;
    transform: translateX(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-menu-sub li a {
  display: block;
  padding: 0.3rem 0.35rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.97);
  text-decoration: none;
  position: relative;
  transition: background 150ms ease, color 150ms ease, padding-left 150ms ease;
}

/* tiny trace + node on submenu hover */
.hero-menu-sub li a::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 1), rgba(15, 23, 42, 1));
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  opacity: 0;
  transition: opacity 150ms ease;
}

.hero-menu-sub li a:hover {
  background: rgba(37, 99, 235, 0.9);
  color: #f9fafb;
  padding-left: 0.6rem;
}

.hero-menu-sub li a:hover::before {
  opacity: 1;
}

/* Mobile: stack subs inside panel */
@media (max-width: 767px) {
  .hero-menu-panel {
    right: auto;
    left: 0;
  }

  .hero-menu-shell {
    min-width: 220px;
  }

  .hero-menu-sub {
    position: static;
    margin: 0.25rem 0 0 0.7rem;
    border-radius: 12px;
    width: auto;
    display: none;
  }

  .hero-menu-root > li.has-sub:hover > .hero-menu-sub {
    display: block;
  }
}

/* ========== THREE DOT MENU ========== */

.hero-menu {
  position: relative;
}

/* round 3-dot button */
.hero-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.7);
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.hero-menu-toggle .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f9fafb;
}

.hero-menu-toggle:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

/* panel is just a transparent positioning wrapper */
.hero-menu-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  padding: 0;
  background: transparent;
  z-index: 40;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transform-origin: top right;
  transition: opacity 140ms ease, transform 140ms ease;
}

/* decorated inner container */
.hero-menu-shell {
  min-width: 260px;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78)),
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.35), transparent 55%);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.98),
    0 0 30px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(18px) saturate(130%);
  overflow: hidden;
}

/* glowing accent line at top */
.hero-menu-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 10% 0, rgba(96, 165, 250, 0.6), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
}

/* open state (controlled by JS on hover) */
.hero-menu.is-open .hero-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* flip upwards when there is no space below */
.hero-menu.is-flip .hero-menu-panel {
  top: auto;
  bottom: calc(100% + 0.6rem);
  transform-origin: bottom right;
}

/* root list */
.hero-menu-root {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.hero-menu-root > li > a,
.hero-menu-root > li > button.menu-parent {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.hero-menu-root > li > a:hover,
.hero-menu-root > li > button.menu-parent:hover {
  background: rgba(30, 64, 175, 0.5);
}

.menu-parent .chevron {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* submenus */
.hero-menu-sub {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.35rem 0.4rem 0.45rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  display: none;
}

.hero-menu-sub li a {
  display: block;
  padding: 0.25rem 0.3rem;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.98);
  text-decoration: none;
}

.hero-menu-sub li a:hover {
  color: #ffffff;
}

/* show sub on hover (desktop) */
.hero-menu-root > li.has-sub:hover > .hero-menu-sub {
  display: block;
}

/* small screens: align & slightly shrink */
@media (max-width: 600px) {
  .hero-menu-shell {
    min-width: 220px;
    padding: 0.85rem 0.9rem;
  }
}
/* ─────────────────────────────────────────────
   THREE-DOT TRIGGER (stays same place)
────────────────────────────────────────────── */

.hero-menu {
  position: relative;
}

.hero-menu-toggle {
  --btn-size: 44px;
  width: var(--btn-size);
  height: var(--btn-size);
  border-radius: 0px;
  border: 1px solid rgba(148, 163, 184, 0);
  background:
    linear-gradient(135deg, #020617, #020617 40%, #0f172a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 10px 30px rgba(15, 23, 42, 0.95);
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
    clip-path: polygon(
    8% 0,
    100% 0,
    100% 75%,
    92% 100%,
    0 100%,
    0 18%
  );
}

.hero-menu-toggle .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #f9fafb;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.9);
}

/* glow ring */
.hero-menu-toggle::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 160ms ease, transform 160ms ease;
}

.hero-menu-toggle:hover {
  background:
    linear-gradient(135deg, #020617, #020617 20%, #111827 60%, #1d4ed8 100%);
  border-color: rgba(248, 250, 252, 0.95);
  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.9),
    0 14px 36px rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

.hero-menu-toggle:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ─────────────────────────────────────────────
   MAIN PANEL – block-on-block + animated hex grid
────────────────────────────────────────────── */

.hero-menu-panel {
  position: absolute;
  top: 120%;
  right: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  overflow: visible; /* allow submenus to fly out */
}

/* flip above if JS adds .is-flip */
.hero-menu.is-flip .hero-menu-panel {
  top: auto;
  bottom: 120%;
}

/* visible state */
.hero-menu.is-open .hero-menu-panel {
  opacity: 1;
  pointer-events: auto;
}

/* outer static “block” shape */
.hero-menu-shell {
  position: relative;
  min-width: 260px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  /* cyberpunk angled block */
  clip-path: polygon(
    8% 0,
    100% 0,
    100% 75%,
    92% 100%,
    0 100%,
    0 18%
  );
  background:
    radial-gradient(circle at 0% 0%, rgba(129, 230, 217, 0.26), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.33), transparent 55%),
    linear-gradient(135deg, #020617, #020617 40%, #020617 60%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.9);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.95),
    0 0 32px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px) saturate(145%);
  overflow: visible;
  transform-origin: top right;
}

/* block behind (block on block) */
.hero-menu-shell::before {
  content: "";
  position: absolute;
  inset: 6px -10px -10px 10px;
  border-radius: 18px;
  clip-path: inherit;
  background: linear-gradient(135deg, #0206175f, #02061746 40%, #0f172a 100%);
  opacity: 0.7;
  z-index: -2;
}

/* animated hex grid overlay */
.hero-menu-shell::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  clip-path: inherit;
  background-image:
    linear-gradient(30deg, rgba(56, 189, 248, 0.22) 12%, transparent 12.5%, transparent 87%, rgba(56, 189, 248, 0.22) 87.5%, rgba(56, 189, 248, 0.22)),
    linear-gradient(150deg, rgba(56, 189, 248, 0.22) 12%, transparent 12.5%, transparent 87%, rgba(56, 189, 248, 0.22) 87.5%, rgba(56, 189, 248, 0.22)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.25) 2%, transparent 2.5%, transparent 97%, rgba(37, 99, 235, 0.25) 97%, rgba(37, 99, 235, 0.25));
  background-size: 22px 38px, 22px 38px, 22px 38px;
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: hexScroll 18s linear infinite;
  z-index: -1;
}

@keyframes hexScroll {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  50% {
    background-position: 16px 26px, -16px 26px, 0 0;
  }
  100% {
    background-position: 32px 52px, -32px 52px, 0 0;
  }
}

/* cyberpunk open animation */
.hero-menu.is-open .hero-menu-shell {
  animation: menuEnter 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menuEnter {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(8px) skewY(2deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(0) skewY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ─────────────────────────────────────────────
   ROOT ITEMS – “cyber text”
────────────────────────────────────────────── */

.hero-menu-root {
  margin: 0;
  padding: 0.15rem 0 0.1rem;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.hero-menu-root > li {
  position: relative;
}

/* glowing bracket on left */
.hero-menu-root > li::before {
  content: "[";
  position: absolute;
  left: -0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.7);
  opacity: 0.6;
  transition: transform 140ms ease, opacity 140ms ease;
}

/* main row */
.hero-menu-root > li > a,
.hero-menu-root > li > button.menu-parent {
  width: 100%;
  padding: 0.52rem 0.6rem;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.92));
  color: rgba(226, 232, 240, 0.98);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    letter-spacing 160ms ease;
}

/* subtle scan line on hover */
.hero-menu-root > li > a::after,
.hero-menu-root > li > button.menu-parent::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(236, 252, 203, 0.2) 45%,
    rgba(125, 211, 252, 0.6) 50%,
    rgba(236, 252, 203, 0.2) 55%,
    transparent 100%
  );
  opacity: 0;
  transform: skewX(-18deg);
}

.hero-menu-root > li > a:hover,
.hero-menu-root > li > button.menu-parent:hover {
  background: linear-gradient(90deg, #1d4ed8, #22d3ee);
  box-shadow:
    0 0 20px rgba(37, 99, 235, 0.9),
    0 10px 28px rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
  letter-spacing: 0.11em;
}

/* glitchy text shadow */
.hero-menu-root > li > a:hover span,
.hero-menu-root > li > button.menu-parent:hover span {
  text-shadow:
    1px -1px 0 rgba(34, 211, 238, 0.8),
    -1px 1px 0 rgba(37, 99, 235, 0.8);
}

/* play scan */
.hero-menu-root > li > a:hover::after,
.hero-menu-root > li > button.menu-parent:hover::after {
  opacity: 1;
  animation: sweep 600ms ease-out;
}

@keyframes sweep {
  0% {
    transform: translateX(0) skewX(-18deg);
  }
  100% {
    transform: translateX(260%) skewX(-18deg);
  }
}

.hero-menu-root > li:hover::before {
  opacity: 1;
  transform: translate(-2px, -50%);
}

/* chevron for submenus */
.hero-menu-root > li.has-sub > a::before,
.hero-menu-root > li.has-sub > button.menu-parent::before {
  content: "▸";
  margin-right: 0.3rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ─────────────────────────────────────────────
   SUBMENUS – fly-out block
────────────────────────────────────────────── */

@media (min-width: 768px) {
  .hero-menu-root > li.has-sub {
    position: relative;
  }

  .hero-menu-sub {
    position: absolute;
    top: 0;
    left: calc(100% + 0.6rem);
    min-width: 220px;
    margin: 0;
    padding: 0.45rem 0.5rem 0.55rem;
    list-style: none;
    border-radius: 16px;
    background:
      linear-gradient(135deg, #020617, #020617 40%, #020617 60%, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.95);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.96),
      0 0 28px rgba(15, 23, 42, 0.9);
    overflow: hidden;
    display: none;
    z-index: 50;
  }

  /* align left if JS adds this class (near right edge) */
  .hero-menu-sub.align-left {
    left: auto;
    right: calc(100% + 0.6rem);
  }

  .hero-menu-root > li.has-sub:hover > .hero-menu-sub {
    display: block;
    animation: submenuEnter 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes submenuEnter {
  0% {
    opacity: 0;
    transform: translateX(8px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.hero-menu-sub li {
  margin: 0.1rem 0;
}

.hero-menu-sub li a {
  display: block;
  padding: 0.32rem 0.4rem;
  border-radius: 10px;
  font-size: 0.84rem;
  color: rgba(203, 213, 225, 0.97);
  text-decoration: none;
  position: relative;
  transition: background 150ms ease, color 150ms ease, padding-left 150ms ease;
}

/* little hex node on hover */
.hero-menu-sub li a::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #22d3ee, #0f172a3e);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}

.hero-menu-sub li a:hover {
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  color: #f9fafb;
  padding-left: 0.8rem;
}

.hero-menu-sub li a:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Mobile: stack subs under parents */
@media (max-width: 767px) {
  .hero-menu-panel {
    right: auto;
    left: 0;
  }

  .hero-menu-shell {
    min-width: 220px;
    clip-path: polygon(
      6% 0,
      100% 0,
      100% 80%,
      92% 100%,
      0 100%,
      0 16%
    );
  }

  .hero-menu-sub {
    position: static;
    margin: 0.25rem 0 0 0.6rem;
    border-radius: 12px;
    display: none;
  }

  .hero-menu-root > li.has-sub:hover > .hero-menu-sub {
    display: block;
  }
}
.hero,
.hero-actions,
.hero-menu,
.hero-menu-panel {
  overflow: visible;
}
/* ─────────────────────────────────────────────
   SUBMENUS – cyberpunk fly-out with build anim
────────────────────────────────────────────── */

@media (min-width: 768px) {
  .hero-menu-root > li.has-sub {
    position: relative;
  }

  .hero-menu-sub {
    position: absolute;
    top: 0;
    left: calc(100% + 0.8rem);
    min-width: 230px;

    margin: 0;
    padding: 0.55rem 0.55rem 0.65rem;
    list-style: none;
    border-radius: 16px;

    background:
      radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.24), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.25), transparent 55%),
      linear-gradient(135deg, #02061741, #0206173f 40%, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.95);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.96),
      0 0 28px rgba(15, 23, 42, 0.9);

    /* cyberpunk “building” effect */
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px) scale(0.94);
    transform-origin: left top;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);

    transition:
      opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
      clip-path 260ms cubic-bezier(0.16, 1, 0.3, 1);

    z-index: 60;
  }

  /* flip to the other side near the right edge */
  .hero-menu-sub.align-left {
    left: auto;
    right: calc(100% + 0.8rem);
    transform-origin: right top;
  }

  /* open state (JS adds .is-open) */
  .hero-menu-sub.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* items inside inner submenu */

.hero-menu-sub li {
  margin: 0.12rem 0;
}

.hero-menu-sub li a {
  display: block;
  padding: 0.32rem 0.45rem;
  border-radius: 10px;
  font-size: 0.84rem;
  color: rgba(203, 213, 225, 0.97);
  text-decoration: none;
  position: relative;
  transition:
    background 150ms ease,
    color 150ms ease,
    padding-left 150ms ease;
}

/* tiny hex node on hover */

.hero-menu-sub li a::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #22d3ee, #0f172a36);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}

.hero-menu-sub li a:hover {
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  color: #f9fafb;
  padding-left: 0.9rem;
}

.hero-menu-sub li a:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* mobile: stack subs under parents (no fly-out) */
@media (max-width: 767px) {
  .hero-menu-panel {
    left: 0;
    right: auto;
  }

  .hero-menu-sub {
    position: static;
    margin: 0.3rem 0 0 0.6rem;
    transform: none;
    clip-path: none;
  }
}
.hero,
.hero-actions,
.hero-menu,
.hero-menu-panel {
  overflow: visible;
}
/* ─────────────────────────────────────────────
   SUBMENUS – cyberpunk fly-out with build anim
────────────────────────────────────────────── */

@media (min-width: 768px) {
  .hero-menu-root > li.has-sub {
    position: relative;
  }

  .hero-menu-sub {
    position: absolute;
    top: 0;
    left: calc(100% + 0.8rem);
    min-width: 230px;

    margin: 0;
    padding: 0.55rem 0.55rem 0.65rem;
    list-style: none;
    border-radius: 16px;

    background:
      radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.24), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.25), transparent 55%),
      linear-gradient(135deg, #0206174a, #0206173c 40%, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.95);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.96),
      0 0 28px rgba(15, 23, 42, 0.9);

    /* cyberpunk “building” effect */
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px) scale(0.94);
    transform-origin: left top;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);

    transition:
      opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
      clip-path 260ms cubic-bezier(0.16, 1, 0.3, 1);

    z-index: 60;
  }

  /* flip to the other side near the right edge */
  .hero-menu-sub.align-left {
    left: auto;
    right: calc(100% + 0.8rem);
    transform-origin: right top;
  }

  /* open state (JS adds .is-open) */
  .hero-menu-sub.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* items inside inner submenu */

.hero-menu-sub li {
  margin: 0.12rem 0;
}

.hero-menu-sub li a {
  display: block;
  padding: 0.32rem 0.45rem;
  border-radius: 10px;
  font-size: 0.84rem;
  color: rgba(203, 213, 225, 0.97);
  text-decoration: none;
  position: relative;
  transition:
    background 150ms ease,
    color 150ms ease,
    padding-left 150ms ease;
}

/* tiny hex node on hover */

.hero-menu-sub li a::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #22d3ee, #0f172a3c);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}

.hero-menu-sub li a:hover {
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  color: #f9fafb;
  padding-left: 0.9rem;
}

.hero-menu-sub li a:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* mobile: stack subs under parents (no fly-out) */
@media (max-width: 767px) {
  .hero-menu-panel {
    left: 0;
    right: auto;
  }

  .hero-menu-sub {
    position: static;
    margin: 0.3rem 0 0 0.6rem;
    transform: none;
    clip-path: none;
  }
}
 .logo{
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;              /* smaller clickable area */
    border-radius: 10px;
    line-height: 0;
    text-decoration: none;
  }

  /* Actual image sizing – reduced */
  .logo__img{
    height: 80px;                  /* was bigger before */
    width: auto;
    display: block;
  }

  .logo.glass{
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow:
      0 4px 16px var(--glass-shadow),
      inset 0 0 0 1px var(--glass-inner);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
  }

  @media (max-width: 520px){
    .logo__img{ height: 28px; }    /* even smaller on mobile */
    .logo{ padding: 3px 6px; border-radius: 8px; }
  }
   :root{
    --cc-scale: .8; /* global shrink for the whole widget */
    --cc-fg: #f5f7fb;
    --cc-muted: #9aa4ad;
    --cc-bg: rgba(0,0,0,.66);
    --cc-edge: rgba(0,0,0,.55);
    --cc-accent: #79d0ff;
    --cc-radius: 12px;
  }

  .corner-clock{
    position: fixed;
    right: max(10px, 1vw);
    bottom: max(10px, 1vw);
    z-index: 9999;
    transform: scale(var(--cc-scale));
    transform-origin: 100% 100%;
    color: var(--cc-fg);
    font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: stretch;
    gap: 0;
    pointer-events: none;
  }

  /* Slightly narrower, smaller button */
  .cc-top{
    all: unset;
    width: 32px;                  /* was 40px */
    display: grid; place-items: center;
    background: var(--cc-bg);
    color: var(--cc-fg);
    border-radius: 0 var(--cc-radius) var(--cc-radius) 0;
    border: 1px solid rgba(255,255,255,.06);
    border-right: none;
    box-shadow: 0 6px 22px rgba(0,0,0,.35);
    backdrop-filter: blur(6px) saturate(120%);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0; transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
  }
  .cc-top:hover{ background: rgba(0,0,0,.78) }
  .cc-top:focus-visible{ outline: 2px solid var(--cc-accent); outline-offset: 2px }
  .cc-top.is-visible{ opacity: 1; transform: none }

  /* Smaller card */
  .cc-card{
    clip-path: polygon(
    8% 0,
    100% 0,
    100% 75%,
    92% 100%,
    0 100%,
    0 18%
  );
    pointer-events: none;
    background: var(--cc-bg);
    /* fixed typo here and made radius slightly smaller */
    border-radius: var(--cc-radius) 0 0 var(--cc-radius);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 6px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.02);
    backdrop-filter: blur(6px) saturate(120%);
    padding: 8px 10px;            /* was 10px 14px */
  }

  .corner-clock.no-top .cc-card{
    border-radius: var(--cc-radius);
    border-left: 1px solid rgba(255,255,255,.06);
  }

  .cc-inner{
    display: flex;
    align-items: flex-end;
    gap: clamp(8px, 1.2vw, 16px);  /* tighter gap */
  }
  .cc-seg{ display:flex; flex-direction:column; align-items:center }

  /* Smaller main digits */
  .cc-val{
    font-size: clamp(22px, 4vw, 40px);  /* was 28–64 */
    line-height: .95;
    font-weight: 700;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 var(--cc-edge), 0 10px 28px rgba(0,0,0,.25);
  }

  .cc-day{ letter-spacing: .16em; font-weight: 800 }
  .cc-label{
    margin-top: 4px;
    font-size: clamp(8px, .8vw, 10px);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cc-muted);
  }

  .cc-sep{
    width: 8px;
    height: 36px;                    /* shorter separator */
    display:flex; align-items:center; justify-content:center; opacity:.6;
  }
  .cc-sep::before{
    content:"";
    width:4px; height:4px; border-radius:50%; background: currentColor;
    box-shadow: 0 8px 0 currentColor, 0 16px 0 currentColor; /* tighter stack */
  }

  .cc-date{
    text-align: right;
    margin-top: 4px;
    margin-right: 20px;
    color: var(--cc-muted);
    font-size: clamp(10px, .9vw, 11px);
    letter-spacing: .02em;
    text-shadow: 0 1px 0 var(--cc-edge);
    padding-right: 2px;
  }

  @media (max-width: 520px){
    :root{ --cc-scale: .75 }        /* even smaller on phones */
    .cc-top{ width: 30px; }
    .cc-card{ padding: 6px 8px; }
    .cc-inner{ gap: 8px }
  }

  @media (prefers-reduced-motion: no-preference){
    .cc-val{ transition: filter .2s ease }
    .tick { filter: brightness(1.15); }
  }
  /* ===========================
   FOCUS SECTION – MINIMAL FRAME
   =========================== */

.focus#focus{
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0 6rem;
  color: #f8f5ff;
  overflow: hidden;
}

/* vertical deco lines over whatever page bg you have */
.focus#focus::before{
  content:"";
  position:absolute;
  inset:-10%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.10) 0,
      rgba(255,255,255,0.0) 1px,
      rgba(0,0,0,0) 14px
    );
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events:none;
}

.focus#focus .container{
  position: relative;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.6rem, 4vw, 2.4rem);
}

/* ===========================
   TYPO
   =========================== */

.focus#focus .section-subtitle{
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: rgba(200,204,234,0.8);
  margin-bottom: 1rem;
}

.focus#focus .section-title{
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.3;
  max-width: 46rem;
  font-weight: 500;
}

.focus#focus .focus-header{
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.focus#focus ul{
  list-style:none;
  margin:0;
  padding:0;
}

/* ===========================
   FEATURE GRID (TOP)
   =========================== */

.focus#focus .focus-feature-list{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: clamp(3.2rem, 6vw, 4.4rem);
}

/* cards: flat, transparent, only line frame + corner crops */
.focus#focus .focus-feature-card{
  position:relative;
  padding:1.4rem 1.4rem 1.6rem;
  background: transparent;
  border:none;
  border-radius:0;
  display:flex;
  flex-direction:column;
  gap:0.8rem;
}

/* main outline with cropped corners */
.focus#focus .focus-feature-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:0;
  border:1px solid rgba(158,167,255,0.55);
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
  pointer-events:none;
}

/* faint diagonal circuit lines inside */
.focus#focus .focus-feature-card::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(154,164,255,0.22) 0,
      rgba(154,164,255,0.0) 1px,
      transparent 12px
    );
  mix-blend-mode:soft-light;
  opacity:0.55;
  pointer-events:none;
}

.focus#focus .card-icon{
  width:42px;
  height:42px;
  border-radius:0;
  border:1px solid rgba(255,255,255,0.5);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.focus#focus .card-icon img{
  max-width:70%;
  height:auto;
  display:block;
}

.focus#focus .card-title{
  font-size:1.02rem;
  margin:0;
}

.focus#focus .card-text{
  font-size:0.9rem;
  color: rgba(193,199,232,0.9);
  line-height:1.55;
}

.focus#focus .card-link{
  margin-top:auto;
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  padding:0.3rem 0;
  font-size:0.86rem;
  text-decoration:none;
  color:#f9f6ff;
  letter-spacing:0.1em;
  text-transform:uppercase;
}

.focus#focus .card-link ion-icon{
  font-size:0.9rem;
  transition: transform .25s ease;
}

.focus#focus .card-link:hover ion-icon{
  transform: translateX(2px);
}

/* ===========================
   MAIN GRIDS (BANNERS + CONTENT)
   =========================== */

.focus#focus .focus-grid{
  display:grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  align-items:center;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(3.2rem, 5.5vw, 4.6rem);
}

.focus#focus .focus-grid--reverse{
  grid-template-columns: minmax(0,0.95fr) minmax(0,1.05fr);
}

@media (min-width: 880px){
  .focus#focus .focus-grid--reverse .focus-content{ order:1; }
  .focus#focus .focus-grid--reverse .focus-banner{  order:2; }
}

@media (max-width: 879.5px){
  .focus#focus .focus-grid,
  .focus#focus .focus-grid--reverse{
    grid-template-columns: minmax(0,1fr);
  }
}

/* banner: flat image, cropped diamond-ish frame + stripes */
.focus#focus .focus-banner{
  position:relative;
  border-radius:0;
  overflow:visible;
  transform-origin:center;
}

.focus#focus .focus-banner img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* cropped frame */
.focus#focus .focus-banner::before{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(160,171,255,0.7);
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
  pointer-events:none;
}

/* inner vertical stripes like reference images */
.focus#focus .focus-banner::after{
  content:"";
  position:absolute;
  inset:6px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.2) 0,
      rgba(255,255,255,0.0) 1px,
      transparent 12px
    );
  mix-blend-mode:screen;
  opacity:0.7;
  pointer-events:none;
}

/* ===========================
   PILL LISTS – LINES ONLY
   =========================== */

.focus#focus .focus-list{
  display:flex;
  flex-wrap:wrap;
  gap:0.7rem;
}

.focus#focus .focus-item{ margin:0; }

.focus#focus .focus-pill{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding:0.5rem 0.9rem;
  background: transparent;
  border:none;
  border-radius:0;
  color:#fdfbff;
  text-decoration:none;
  font-size:0.82rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

/* outlined capsule with cropped corners, no fill */
.focus#focus .focus-pill::before{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(158,167,255,0.65);
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
  pointer-events:none;
  transition: border-color .25s ease, transform .25s ease;
}

.focus#focus .focus-pill:hover::before{
  border-color: rgba(255,200,255,0.9);
  transform: translateY(-1px);
}

.focus#focus .focus-item-icon{
  width:18px;
  height:18px;
  border-radius:0;
  border:1px solid rgba(255,255,255,0.8);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.focus#focus .focus-item-title{
  font-size:0.78rem;
  font-weight:500;
}

/* ===========================
   REVEAL ANIMATION (hooks your JS)
   =========================== */

.focus#focus [data-anim],
.focus#focus .media-reveal{
  opacity:0;
  transform: translate3d(0,20px,0);
  transition:
    opacity .6s cubic-bezier(0.19, 1, 0.22, 1),
    transform .6s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, opacity;
}

.focus#focus .is-visible{
  opacity:1;
  transform:none;
}
/* ===== FOCUS SECTION BG + ORB CURSOR ===== */

#focus.focus,
.focus {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: none; /* hide default cursor inside the section */
}

/* base dark / purple-ish background + vertical lines (static) */
.focus::before,
.focus::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
}

/* soft dark gradient + vague diamond-ish lighting */
.focus::before {
  background:
    radial-gradient(circle at 20% 25%, rgba(120, 80, 255, 0.45), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255, 110, 210, 0.50), transparent 60%),
    linear-gradient(135deg, #020109, #050013, #020007);
  opacity: 1;
}

/* vertical scan lines over everything (like through glass) */
.focus::after {
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 10px
    );
  mix-blend-mode: soft-light;
  opacity: 0.9;
}

/* keep your content above the effects */
.focus > .container,
.focus .focus-header,
.focus .focus-grid {
  position: relative;
  z-index: 2;
}

/* layer that gets clipped by a moving circle → "zoom/glow" on bg */
.focus-orb-layer {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 1;

  /* slightly rotated bright diamond-ish gradient */
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95) 15%,
      rgba(255, 200, 255, 0.8) 40%,
      rgba(170, 80, 255, 0.55) 65%,
      rgba(10, 0, 30, 0.0) 100%
    );
  transform: scale(1.3) rotate(45deg);
  mix-blend-mode: screen;
  opacity: 0; /* turned on by JS when active */

  /* controlled by JS via CSS variables */
  clip-path: circle(var(--orb-r, 0px) at var(--orb-x, 50%) var(--orb-y, 50%));
  transition: opacity 0.25s ease-out;
}

/* when JS attaches, we mark section as ready */
.focus.focus-has-orb .focus-orb-layer {
  opacity: 0.95;
}

/* custom cursor circle */
.focus-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 160px;
  height: 160px;
  margin: 0;
  pointer-events: none;
  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 35px rgba(255, 160, 255, 0.8),
    0 0 80px rgba(140, 90, 255, 0.6);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 120, 255, 0.35), transparent 65%);
  mix-blend-mode: screen;
  backdrop-filter: blur(12px);

  opacity: 0;
  transform: translate(-9999px, -9999px) scale(0.3);
  transition: opacity 0.2s ease-out;
}

/* show only when pointer is inside #focus */
.focus-cursor.is-active {
  opacity: 1;
}
:root{
  --headerH: 0px;                             /* set if you have a sticky header (e.g. 72px) */
  --maxW: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --asideW: clamp(260px, 28vw, 360px);        /* still available if you need it elsewhere */
  --fg: #0b0b0b;                              /* black text like the screenshot */
  --muted:#5b6169;
}

/* Scope wrapper */
#scnScope{ position: relative; }

/* Sticky dock (visible only while sections inside #scnScope are in view) */
#textDock{
  position: sticky;
  top: var(--headerH);
  height: calc(100svh - var(--headerH));
  z-index: 10;
  display: grid;
  align-items: center;
  color: var(--fg);
  pointer-events: none;                       /* page behind stays interactive */
  background: transparent;
}

#textDock .dock-inset{
  max-width: var(--maxW);
  margin: 0 auto;
  padding: var(--pad);
  pointer-events: auto;                       /* keep CTAs clickable */

  /* TWO EQUAL COLUMNS (50 / 50) */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));  /* <<< changed */
  grid-column-gap: clamp(24px, 4vw, 56px);
  grid-template-areas:
    "title  asideTitle"
    "lead   asideList"
    "form   asideList";
}

/* LEFT COLUMN ----------------------------------------------------------- */
#textDock h2{
  grid-area: title;
  margin: 0 0 1rem;
  font-weight: 900;
  line-height: .90;
  letter-spacing: -0.035em;
  font-size: clamp(2.6rem, 4vw, 6.8rem);      /* BIG like the screenshot */
  text-transform: uppercase;                  /* headline is uppercase */
  /* no forced word-breaking; natural wrapping only */
}

#textDock .lead{
  grid-area: lead;
  color: var(--muted);
  max-width: 60ch;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  margin: 0 0 1.25rem;
}

/* Inline email row (underline input + “Send →”) */
#textDock .cta{
  grid-area: form;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: .25rem;
}

#textDock .cta input[type="email"]{
  border: none;
  border-bottom: 1px solid #1b1b1b;
  background: transparent;
  color: var(--fg);
  outline: none;
  width: clamp(220px, 32vw, 420px);
  padding: .6rem 0;
  font-size: 1rem;
}
#textDock .cta input::placeholder{ color:#8a8f96; }

#textDock .cta .send,
#textDock .cta button,
#textDock .cta a{
  border: 0;
  background: none;
  color: var(--fg);
  font-weight: 700;
  padding: .5rem 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
#textDock .cta .send::after,
#textDock .cta button::after,
#textDock .cta a:last-child::after{ content:" \2192"; } /* → */

/* RIGHT COLUMN ---------------------------------------------------------- */
#textDock .kicker{
  grid-area: asideTitle;
  justify-self: end;
  text-align: right;
  margin: .4rem 0 .6rem;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: .95rem;
  opacity: .95;                               /* “Our Best Projects” */
}

#textDock .bullets{
  grid-area: asideList;
  justify-self: end;
  text-align: right;
  list-style: none;
  padding: 0;
  margin: .25rem 0 0;
  width: 100%;
  max-width: 100%;                            /* uses its 50% column */
  display: grid;
  gap: .45rem;
}
#textDock .bullets li{
  display: inline-flex;
  align-items: center;
  gap: 0rem;
  justify-content: flex-end;
  font-weight: 600;
}
#textDock .bullets li a{ color: inherit; text-decoration: none; }
#textDock .bullets li:hover{ opacity: .7; }

/* Diamond on the first item; arrows on all items */
#textDock .bullets li:first-child::before{
  content: "";
  margin-right: .35rem;
  font-size: .8rem;
}
#textDock .bullets li::after{
  content: " \2192";                           /* → */
  opacity: .5;
  margin-left: .35rem;
}

/* ANIMATION END STATES (your JS toggles .in when section changes) ------ */
#textDock .kicker,
#textDock h2,
#textDock .lead,
#textDock .bullets li{ opacity: 0; transform: translateY(16px); }
#textDock .kicker.in,
#textDock h2.in,
#textDock .lead.in,
#textDock .bullets li.in{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  #textDock .kicker,#textDock h2,#textDock .lead,#textDock .bullets li{
    opacity:1 !important; transform:none !important; transition:none !important; animation:none !important;
  }
}

/* MOBILE: stack right rail beneath left content ------------------------ */
@media (max-width: 880px){
  #textDock .dock-inset{
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "lead"
      "form"
      "asideTitle"
      "asideList";
  }
  #textDock .kicker,
  #textDock .bullets{ justify-self: start; text-align: left; }
}
/* ============================
   ISOLATED ACCESSIBILITY PANEL
   (slides in from LEFT)
   ============================ */

/* Backdrop */
#a11yBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#a11yBackdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* Panel root */
#a11yPanel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;          /* anchored to LEFT */
  right: auto;
  max-width: 420px;
  width: min(100vw, 420px);
  z-index: 9998;

  /* basic look */
  background: #0a0a10;
  color: #f5f5ff;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  display: flex;
  flex-direction: column;

  /* start off-screen on the left */
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .25s ease;
}

/* make its own box model so other global styles don't break it */
#a11yPanel,
#a11yPanel * {
  box-sizing: border-box;
}

/* open state (JS sets data-open="true") */
#a11yPanel[data-open="true"] {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== header ===== */
#a11yPanel .a11y-panel__header {
  padding: 1.1rem 1.4rem;
  background: linear-gradient(90deg, #4b32df, #8234ff);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

#a11yPanel .a11y-panel__header h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#a11yPanel .a11y-panel__subtitle {
  margin: .25rem 0 0;
  font-size: .8rem;
  opacity: .85;
}

#a11yPanel .a11y-close {
  border: 0;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 1.3rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== body / grid of tiles ===== */
#a11yPanel .a11y-panel__body {
  padding: 1.1rem 1.4rem 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
  overflow-y: auto;
}

/* tile button */
#a11yPanel .a11y-tile {
  border-radius: .8rem;
  border: 1px solid #2b2d3a;
  background: #11121a;
  color: inherit;
  padding: .8rem .85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  position: relative;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    transform .1s ease;
}

#a11yPanel .a11y-tile::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .45rem;
  border-radius: 999px;
  border-bottom: 2px solid rgba(255,255,255,.06);
}

#a11yPanel .a11y-tile__icon {
  font-size: 1.2rem;
}

#a11yPanel .a11y-tile__title {
  font-size: .9rem;
  font-weight: 600;
}

#a11yPanel .a11y-tile__desc {
  font-size: .78rem;
  color: #a5a6c7;
}

#a11yPanel .a11y-tile:hover {
  border-color: rgba(111, 76, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(111, 76, 255, 0.16);
  transform: translateY(-1px);
}

/* active state */
#a11yPanel .a11y-tile[aria-pressed="true"] {
  border-color: #6f4cff;
  background: radial-gradient(circle at top left,
              rgba(111,76,255,0.18), #11121a);
  box-shadow: 0 0 0 1px rgba(111,76,255,0.2);
}

#a11yPanel .a11y-tile[aria-pressed="true"]::before {
  content: "✓";
  position: absolute;
  top: .6rem;
  right: .65rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: #6f4cff;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== footer ===== */
#a11yPanel .a11y-panel__footer {
  padding: .9rem 1.4rem 1.2rem;
  border-top: 1px solid #1a1b26;
}

#a11yPanel .a11y-reset {
  width: 100%;
  border-radius: 999px;
  border: 0;
  padding: .65rem 1rem;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  background: #4b32df;
  color: #fff;
  cursor: pointer;
}

/* mobile: full width */
@media (max-width: 600px) {
  #a11yPanel {
    max-width: 100vw;
  }
  #a11yPanel .a11y-panel__body {
    grid-template-columns: minmax(0,1fr);
  }
}
.access-panel{
  position:fixed;
  inset:auto 0 0 auto;   /* example: bottom-right; adjust as you like */
  z-index: 9999;
  isolation:isolate;
}
#a11yBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#a11yBackdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* Panel root */
#a11yPanel {
  position: fixed;
  /* anchor to LEFT of viewport, not header */
  top: 0;
  left: 100px;
  right: auto;
  bottom: 0;

  width: min(100vw, 420px);
  max-width: 420px;
  max-height: 100vh;

  z-index: 9998;

  /* basic look */
  background: #0a0a10;
  color: #f5f5ff;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* start off-screen on the left */
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .25s ease;
}

/* own box model */
#a11yPanel,
#a11yPanel * {

  box-sizing: border-box;
}

/* open state */
#a11yPanel[data-open="true"] {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== header ===== */
#a11yPanel .a11y-panel__header {
  padding: 1.1rem 1.4rem;
  background: linear-gradient(90deg, #4b32df, #8234ff);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

#a11yPanel .a11y-panel__header h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#a11yPanel .a11y-panel__subtitle {
  margin: .25rem 0 0;
  font-size: .8rem;
  opacity: .85;
}

#a11yPanel .a11y-close {
  border: 0;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 1.3rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== body / grid of tiles ===== */
#a11yPanel .a11y-panel__body {
  padding: 1.1rem 1.4rem 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;

  /* make the grid the scroll area */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* tile button */
#a11yPanel .a11y-tile {
  border-radius: .8rem;
  border: 1px solid #2b2d3a;
  background: #11121a;
  color: inherit;
  padding: .8rem .85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  position: relative;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    transform .1s ease;
}

#a11yPanel .a11y-tile::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .45rem;
  border-radius: 999px;
  border-bottom: 2px solid rgba(255,255,255,.06);
}

#a11yPanel .a11y-tile__icon {
  font-size: 1.2rem;
}

#a11yPanel .a11y-tile__title {
  font-size: .9rem;
  font-weight: 600;
}

#a11yPanel .a11y-tile__desc {
  font-size: .78rem;
  color: #a5a6c7;
}

#a11yPanel .a11y-tile:hover {
  border-color: rgba(111, 76, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(111, 76, 255, 0.16);
  transform: translateY(-1px);
}

/* active state */
#a11yPanel .a11y-tile[aria-pressed="true"] {
  border-color: #6f4cff;
  background: radial-gradient(circle at top left,
              rgba(111,76,255,0.18), #11121a);
  box-shadow: 0 0 0 1px rgba(111,76,255,0.2);
}

#a11yPanel .a11y-tile[aria-pressed="true"]::before {
  content: "✓";
  position: absolute;
  top: .6rem;
  right: .65rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: #6f4cff;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== footer ===== */
#a11yPanel .a11y-panel__footer {
  padding: .9rem 1.4rem 1.2rem;
  border-top: 1px solid #1a1b26;
  flex-shrink: 0;
}

#a11yPanel .a11y-reset {
  width: 100%;
  border-radius: 1px;
  border: 0;
  padding: .65rem 1rem;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  background: #4b32df;
  color: #fff;
  cursor: pointer;
}

/* mobile: full width */
@media (max-width: 600px) {
  #a11yPanel {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }
  #a11yPanel .a11y-panel__body {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Optional: lock background scroll when panel open */
html.a11y-open,
body.a11y-open {
  overflow: hidden;
}

/* your old helper: can still be used for a floating trigger if you want */
.access-panel {
  position: fixed;
  inset: auto 0 0 auto;
  z-index: 99999;
  isolation: isolate;
}
:root.a11y-text-lg { font-size: 110%; }
:root.a11y-text-xl { font-size: 120%; }

body.a11y-contrast-dark  { background:#000; color:#fff; }
body.a11y-contrast-light { background:#fff; color:#000; }
body.a11y-contrast-invert{ filter: invert(1) hue-rotate(180deg); }

body.a11y-highlight-links a { outline:2px solid #f0f; text-decoration:underline !important; }
body.a11y-big-cursor { cursor: url(big-cursor.png), auto; } /* or just `cursor: default` to test */

body.a11y-text-spacing { letter-spacing:0.04em; line-height:1.7; }
body.a11y-hide-images img { visibility:hidden !important; }

body.a11y-lh-15 { line-height:1.5; }
body.a11y-lh-20 { line-height:2; }

body.a11y-sat-low  { filter:saturate(0.6); }
body.a11y-sat-gray { filter:grayscale(1); }
/* ------------- Accessibility toggle button in header ------------- */

.a11y-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: #e5f3ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.a11y-toggle ion-icon {
  font-size: 18px;
}

.a11y-toggle:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(248, 250, 252, 0.9);
  transform: translateY(-1px);
}

.a11y-toggle-label {
  white-space: nowrap;
}

/* --------- Panel + backdrop, independent of header --------- */

#a11yBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 99997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease-out;
}

#a11yBackdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

#a11yPanel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 92vw);
  max-width: 380px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 55%),
    linear-gradient(180deg, #020617, #020617 40%, #020617 100%);
  color: #e5f3ff;
  box-shadow: -26px 0 70px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(18px) saturate(130%);
  z-index: 99999;
  transform: translateX(100%);
  opacity: 0;
  transition:
    transform 0.26s cubic-bezier(.2, .8, .2, 1),
    opacity 0.26s ease-out;
  isolation: isolate;
}

#a11yPanel[data-open="true"] {
  transform: translateX(0);
  opacity: 1;
}

/* Head / body / footer layout */

.a11y-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem 0.8rem;
}

.a11y-panel-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0 0 0.15rem;
}

.a11y-panel-head h2 {
  font-size: 1.05rem;
  margin: 0;
}

.a11y-close {
  border: 0;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e5f3ff;
  cursor: pointer;
}

.a11y-close ion-icon {
  font-size: 18px;
}

.a11y-panel-body {
  padding: 0.4rem 1.4rem 1rem;
  overflow: auto;
}

.a11y-panel-foot {
  padding: 0.75rem 1.4rem 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
}

.a11y-reset {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.85);
  color: #e5f3ff;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}

/* Tiles */

.a11y-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.a11y-tile {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.4), transparent 65%);
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.a11y-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.a11y-tile-icon ion-icon {
  font-size: 18px;
}

.a11y-tile-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.a11y-tile-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.a11y-tile-desc {
  font-size: 0.76rem;
  opacity: 0.8;
}

/* Pressed state */
.a11y-tile[aria-pressed="true"] {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.5),
    0 10px 26px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

/* Small devices */
@media (max-width: 600px) {
  #a11yPanel {
    width: 100vw;
  }
}

/* Prevent background scroll when panel open */
html.a11y-open,
body.a11y-open {
  overflow: hidden;
}

/* ------------- Accessibility EFFECT classes ---------------- */

/* Bigger text */
html.a11y-text-large {
  font-size: 110%;
}

/* High contrast – stronger background & text */
html.a11y-contrast {
  background-color: #000 !important;
}
html.a11y-contrast body {
  background-color: #000 !important;
  color: #ffffff !important;
}

/* Highlight links */
html.a11y-highlight-links a {
  outline: 2px solid #facc15;
  outline-offset: 2px;
  text-decoration: underline !important;
}

/* Big cursor */
html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: default !important;
}

/* Extra spacing */
html.a11y-text-spacing body {
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* Reduce motion */
html.a11y-reduced-motion *,
html.a11y-reduced-motion *::before,
html.a11y-reduced-motion *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}

/* Hide images (soft, not brutal) */
html.a11y-hide-images img {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.15;
}
/* Lock background scroll when accessibility panel is open */
html.a11y-open,
body.a11y-open {
  overflow: hidden;
}

/* Panel body scrolls independently */
.a11y-panel-body {
  overflow-y: auto;
  max-height: calc(100vh - 140px); /* tweak if needed */
}
html.a11y-text-large {
  font-size: 110%;
}

html.a11y-contrast {
  filter: contrast(1.4);
}

html.a11y-highlight-links a {
  outline: 2px solid yellow;
  text-decoration: underline;
}

html.a11y-big-cursor {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><circle cx="8" cy="8" r="8" fill="white" stroke="black" stroke-width="2"/></svg>') 0 0, auto;
}

html.a11y-text-spacing {
  line-height: 1.8;
  letter-spacing: 0.05em;
}

html.a11y-reduced-motion * {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}

html.a11y-hide-images img {
  opacity: 0.1;
}

/* Optional visual feedback for active tiles */
.a11y-tile.is-on {
  outline: 2px solid var(--accent, #4ade80);
  background: rgba(255,255,255,0.08);
}
/* Invert colors (used by "Invert Colors" button AND your invert state) */
html.a11y-theme-invert body{
  filter: invert(1) hue-rotate(180deg);
  background-color:#000;
}

/* Reading guide overlay */
#a11yReadingGuide{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:9997;          /* below bubble/backdrop/panel */
  display:none;
}
#a11yReadingGuide.is-on{
  display:block;
}
.a11y-guide-vertical{
  position:absolute;
  top:0;
  width:2px;
  height:100%;
  background:rgba(108,59,255,.65);
  box-shadow:0 0 0 1px rgba(15,23,42,.35);
  transform:translateX(-1px);
}
.a11y-guide-horizontal{
  position:absolute;
  left:0;
  width:100%;
  height:40px;
  background:rgba(108,59,255,.18);
  box-shadow:0 0 0 1px rgba(108,59,255,.4);
}
/* Reading guide */
#a11yReadingGuide {
  pointer-events:none;
  position:fixed;
  inset:0;
  z-index:9998;
}
#a11yReadingGuide .a11y-guide-vertical {
  position:absolute;
  top:0;
  bottom:0;
  width:2px;
  background:rgba(255,255,0,.7);
}
#a11yReadingGuide .a11y-guide-horizontal {
  position:absolute;
  left:0;
  right:0;
  height:40px;
  background:rgba(255,255,0,.12);
}
#a11yReadingGuide:not(.is-on) {
  display:none;
}

/* Text highlighter: change selection color when ON */
.a11y-text-highlighter ::selection {
  background: #fff59d;
  color: #000;
}

/* Example: bigger text */
.a11y-bigger-text {
  font-size: 112%;
}

/* Example: hide images (you can refine) */
.a11y-hide-images img,
.a11y-hide-images picture,
.a11y-hide-images video {
  opacity:.1;
}

/* Example: high contrast text */
.a11y-smart-contrast {
  color:#fff;
  background:#000;
}

/* Make sure the panel/backdrop don't always hide nav */
#a11yBackdrop[hidden],
#a11yPanel[hidden] {
  display:none !important;
}
/* Let the submenu extend outside the glass block */
/* =========================================================
   HERO MENU – CYBERPUNK HUD FRAMES
   ========================================================= */

/* basic container */
.hero-menu{
  position:relative;
  z-index:50;
}

/* ───────── Trigger button (3-dot) ───────── */

.hero-menu-toggle{
  --btn-size: 46px;
  width:var(--btn-size);
  height:var(--btn-size);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  cursor:pointer;

  /* angled HUD shape like sprite */
  clip-path:polygon(
    10% 0,
    100% 0,
    100% 75%,
    92% 100%,
    0 100%,
    0 18%
  );

  border-radius:0;
  border:1px solid rgba(255,255,255,0.3);
  background:
    linear-gradient(135deg,#020617,#020617 40%,#0b1120 100%);
  box-shadow:
    0 14px 32px rgba(0,0,0,0.85),
    0 0 18px rgba(56,189,248,0.7);
  position:relative;
  overflow:hidden;
  transition:
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.hero-menu-toggle::before{
  /* inner glowing frame */
  content:"";
  position:absolute;
  inset:3px;
  clip-path:inherit;
  border-radius:0;
  border:1px solid rgba(56,189,248,0.7);
  opacity:0;
  transform:scale(.9);
  transition:opacity .2s ease, transform .2s ease;
}

.hero-menu-toggle .dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#e5f3ff;
  box-shadow:0 0 6px rgba(56,189,248,0.9);
}

.hero-menu-toggle:hover{
  background:
    linear-gradient(135deg,#020617,#020617 20%,#111827 70%,#1d4ed8 100%);
  border-color:rgba(248,250,252,0.95);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.95),
    0 0 24px rgba(56,189,248,0.9);
  transform:translateY(-1px);
}

.hero-menu-toggle:hover::before{
  opacity:1;
  transform:scale(1);
}

/* ───────── Main panel wrapper ───────── */

.hero-menu-panel{
  position:absolute;
  top:120%;
  right:0;
  opacity:0;
  pointer-events:none;
  z-index:60;
  overflow:visible;
  transform:translateY(8px) scale(.96);
  transform-origin:top right;
  transition:
    opacity .22s cubic-bezier(.16,1,.3,1),
    transform .22s cubic-bezier(.16,1,.3,1);
}

.hero-menu.is-flip .hero-menu-panel{
  top:auto;
  bottom:120%;
  transform-origin:bottom right;
}

/* visible state set by JS */
.hero-menu.is-open .hero-menu-panel{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

/* ───────── Inner shell = HUD frame card ───────── */

.hero-menu-shell{
  position:relative;
  min-width:260px;
  padding:0.9rem 1rem;
  background:
    radial-gradient(circle at 0 0,rgba(56,189,248,.24),transparent 55%),
    radial-gradient(circle at 100% 100%,rgba(59,130,246,.23),transparent 55%),
    linear-gradient(135deg,#020617,#020617 40%,#020617 100%);
  border:1px solid rgba(148,163,184,.9);

  /* angled “card” like ref image */
  clip-path:polygon(
    12px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );

  box-shadow:
    0 26px 70px rgba(0,0,0,0.96),
    0 0 32px rgba(15,23,42,0.9);
  backdrop-filter:blur(18px) saturate(145%);
  overflow:visible;
}

/* faint inner grid like HUD */
.hero-menu-shell::before{
  content:"";
  position:absolute;
  inset:3px;
  clip-path:inherit;
  border-radius:0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(148,163,184,0.35) 0,
      rgba(148,163,184,0.35) 1px,
      transparent 1px,
      transparent 12px
    );
  opacity:.45;
  pointer-events:none;
}

/* light sweep over panel when opened */
.hero-menu-shell::after{
  content:"";
  position:absolute;
  inset:-20%;
  clip-path:inherit;
  background:linear-gradient(
    120deg,
    transparent 0%,
    rgba(244,244,245,0.5) 40%,
    rgba(56,189,248,0.9) 50%,
    transparent 70%
  );
  opacity:0;
  pointer-events:none;
  transform:translateX(-80%);
}

.hero-menu.is-open .hero-menu-shell::after{
  opacity:1;
  animation:heroMenuSweep .55s ease-out forwards;
}

@keyframes heroMenuSweep{
  to{ transform:translateX(80%); opacity:0; }
}

/* ───────── Root list (main items) ───────── */

.hero-menu-root{
  list-style:none;
  margin:0;
  padding:0.2rem 0 0.1rem;
  display:grid;
  gap:0.45rem;
}

.hero-menu-root > li{
  position:relative;
}

/* left little bracket like HUD node */
.hero-menu-root > li::before{
  content:"";
  position:absolute;
  left:-0.4rem;
  top:50%;
  width:12px;
  height:1px;
  background:linear-gradient(
    to right,
    rgba(148,163,184,0) 0%,
    rgba(148,163,184,0.9) 60%,
    rgba(56,189,248,0) 100%
  );
  transform:translateY(-50%);
  opacity:.6;
  transition:opacity .16s ease, transform .16s ease;
}

/* clickable row */
.hero-menu-root > li > a,
.hero-menu-root > li > button.menu-parent{
  width:100%;
  border:0;
  padding:0.55rem 0.7rem;
  border-radius:0;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.6rem;

  font-size:0.86rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  font-weight:600;
  text-align:left;
  text-decoration:none;

  color:#e5f3ff;
  background:
    linear-gradient(
      90deg,
      rgba(15,23,42,0.92),
      rgba(15,23,42,0.98)
    );
  position:relative;
  overflow:hidden;

  box-shadow:0 0 0 1px rgba(31,41,55,0.9);
  transition:
    background .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    letter-spacing .18s ease;
}

/* outline frame around each item (like thin HUD card) */
.hero-menu-root > li > a::before,
.hero-menu-root > li > button.menu-parent::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:0;
  clip-path:polygon(
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px),
    0 8px
  );
  border:1px solid rgba(148,163,184,0.75);
  opacity:.65;
  pointer-events:none;
}

/* scan-line glow on hover */
.hero-menu-root > li > a::after,
.hero-menu-root > li > button.menu-parent::after{
  content:"";
  position:absolute;
  top:0;
  left:-40%;
  width:40%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent 0%,
    rgba(236,252,203,0.1) 40%,
    rgba(56,189,248,0.8) 50%,
    transparent 60%
  );
  opacity:0;
  transform:skewX(-18deg);
}

/* hover state */
.hero-menu-root > li > a:hover,
.hero-menu-root > li > button.menu-parent:hover{
  background:linear-gradient(90deg,#1d4ed8,#22d3ee);
  box-shadow:
    0 0 20px rgba(56,189,248,0.95),
    0 10px 26px rgba(15,23,42,0.98);
  transform:translateY(-1px);
  letter-spacing:0.14em;
}

.hero-menu-root > li > a:hover::after,
.hero-menu-root > li > button.menu-parent:hover::after{
  opacity:1;
  animation:heroMenuSweep 600ms ease-out;
}

.hero-menu-root > li:hover::before{
  opacity:1;
  transform:translate(-2px,-50%);
}

/* chevron for items with submenu */
.hero-menu-root > li.has-sub > a::before,
.hero-menu-root > li.has-sub > button.menu-parent::before{
  /* keep frame from previous rule, add chevron separately */
}

.hero-menu-root > li.has-sub > a span::after,
.hero-menu-root > li.has-sub > button.menu-parent span::after{
  content:"▸";
  margin-left:0.35rem;
  font-size:0.9rem;
  opacity:.85;
}

/* ───────── Submenus: fly-out HUD blocks ───────── */

.hero-menu-root > li.has-sub{
  position:relative;
}

.hero-menu-sub{
  position:absolute;
  top:0;
  left:calc(100% + 0.7rem);
  min-width:220px;
  margin:0;
  padding:0.55rem 0.55rem 0.65rem;
  list-style:none;

  background:
    radial-gradient(circle at 0 0,rgba(56,189,248,0.24),transparent 55%),
    radial-gradient(circle at 100% 100%,rgba(59,130,246,0.25),transparent 55%),
    linear-gradient(135deg,#020617,#020617 40%,#020617 100%);
  border:1px solid rgba(51,65,85,0.95);

  clip-path:polygon(0 50%,100% 50%,100% 50%,0 50%); /* collapsed */
  opacity:0;
  pointer-events:none;
  transform:translateX(10px);
  transform-origin:center;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.96),
    0 0 28px rgba(15,23,42,0.9);
  z-index:70;
  transition:
    opacity .22s cubic-bezier(.16,1,.3,1),
    transform .22s cubic-bezier(.16,1,.3,1),
    clip-path .26s cubic-bezier(.16,1,.3,1);
}

/* open to left near edge if JS adds .align-left */
.hero-menu-sub.align-left{
  left:auto;
  right:calc(100% + 0.7rem);
}

/* open on hover OR when JS adds .is-open */
.hero-menu-root > li.has-sub:hover > .hero-menu-sub,
.hero-menu-sub.is-open{
  opacity:1;
  pointer-events:auto;
  transform:translateX(0);
  clip-path:polygon(0 0,100% 0,100% 100%,0 100%);
}

/* submenu items themselves: small HUD bars */

.hero-menu-sub li{
  margin:0.12rem 0;
}

.hero-menu-sub li a{
  position:relative;
  display:block;
  padding:0.34rem 0.55rem;
  font-size:0.82rem;
  color:rgba(226,232,240,0.96);
  text-decoration:none;

  background:
    linear-gradient(90deg,rgba(15,23,42,0.94),rgba(15,23,42,0.98));
  box-shadow:0 0 0 1px rgba(31,41,55,0.9);
  letter-spacing:0.08em;
  text-transform:uppercase;
  overflow:hidden;
  transition:
    background .16s ease,
    box-shadow .16s ease,
    padding-left .16s ease;
}

/* little node on hover */
.hero-menu-sub li a::before{
  content:"";
  position:absolute;
  left:0.2rem;
  top:50%;
  width:7px;
  height:7px;
  transform:translateY(-50%) scale(.9);
  clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
  background:radial-gradient(circle,#22d3ee,#0f172a60);
  box-shadow:0 0 12px rgba(34,211,238,0.9);
  opacity:0;
  transition:opacity .16s ease, transform .16s ease;
}

/* scan bar over submenu item */
.hero-menu-sub li a::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    120deg,
    transparent 0%,
    rgba(236,252,203,0.1) 40%,
    rgba(56,189,248,0.7) 50%,
    transparent 60%
  );
  opacity:0;
  transform:translateX(-80%);
}

.hero-menu-sub li a:hover{
  background:linear-gradient(90deg,#1d4ed8,#0ea5e9);
  box-shadow:
    0 0 18px rgba(56,189,248,0.9),
    0 8px 20px rgba(15,23,42,0.98);
  padding-left:0.9rem;
}

.hero-menu-sub li a:hover::before{
  opacity:1;
  transform:translateY(-50%) scale(1.1);
}

.hero-menu-sub li a:hover::after{
  opacity:1;
  animation:heroMenuSweep .55s ease-out;
}

/* ───────── Mobile: panel full width, submenus stacked ───────── */

@media (max-width: 767px){
  .hero-menu-panel{
    right:0;
    left:auto;
  }
  .hero-menu-shell{
    min-width:220px;
  }
  .hero-menu-sub{
    position:static;
    transform:none;
    clip-path:none;
    margin:0.35rem 0 0 0;
    box-shadow:none;
  }
}

.hero-menu-panel,
.hero-menu-shell {
  overflow: visible !important;
}

/* Make sure the shell is a positioning context */
.hero-menu-shell {
  position: relative;
  /* remove any clipping if you had it */
  clip-path: none;
}
/* Parent list items must be relative so subs position from them */
.hero-menu-root > li.has-sub {
  position: relative;
}

/* Default: open to the right */
.hero-menu-sub {
  position: absolute;
  top: 4px;           /* tweak to align vertically with parent */
  left: 100%;
  min-width: 220px;
  z-index: 40;        /* above shell */
}

/* If JS adds .align-left, open to the left */
.hero-menu-sub.align-left {
  left: auto;
  right: 100%;
  background-color: transparent;
}
/* ===========================================
   BRUTE MOBILE OVERRIDES (≤ 768px)
   Paste this at the VERY END of your CSS
=========================================== */
@media (max-width: 768px) {

  /* Base */
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: var(--ff-be-vietnam-pro, system-ui, -apple-system, Segoe UI, Roboto, sans-serif);
    background: #020617;
    color: #f9fafb;
    overflow-x: hidden;
  }

  /* Kill all left rail / timeline / particles / progress on mobile */
  .rail,
  .timeline,
  .timeline__line,
  .timeline__dot,
  .progress-container,
  .vignette {
    display: none !important;
  }

  /* HEADER – simple top bar */
  .header,
  .header.header--left,
  header.page {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: auto !important;
    padding: 0.75rem 1rem;
    background: #020617;
    box-shadow: 0 2px 15px rgba(0,0,0,.5);
    z-index: 1000;
  }

  .header .container {
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
  }

  .logo img { width: 140px; height: auto; }

  /* burger always visible on mobile */
  .nav-toggle-btn {
    display: block !important;
    font-size: 28px;
  }

  /* navbar: simple dropdown under header */
  .navbar {
    position: static !important;
    width: 100%;
    padding: .5rem 0 0;
    background: transparent;
    visibility: visible !important;
  }

  .navbar-list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem;
    padding: 0;
    margin: .25rem 0 0;
  }

  .navbar-link {
    padding: .4rem .7rem;
    border-radius: .5rem;
    background: #0b1120;
    font-size: .8rem;
    color: rgb(189, 230, 230);
  }

  /* Push content below fixed header */
  main,
  .hero,
  .package,
  .service,
  .features,
  .blog,
  .newsletter,
  .footer-top,
  section.scn {
    padding-top: 4.5rem;
  }

  /* HERO – stacked, simple */
  .hero {
    position: relative;
    min-height: auto;
    padding: 5rem 1.25rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    background: #020617;
    overflow: visible !important;
  }

  .hero-left,
  .hero-card {
    max-width: 100%;
    width: 100%;
  }

  .h1,
  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
  }

  .section-text {
    font-size: .95rem;
    max-width: 100%;
    line-height: 1.7;
    margin-bottom: 1.4rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    margin-top: 1.4rem;
  }

  

  /* HERO MENU – bottom sheet style */
  .hero-menu-panel {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    padding: 0;
  }

  .hero-menu.is-open .hero-menu-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-menu-shell {
    min-width: 100%;
    border-radius: 18px 18px 0 0;
    clip-path: none;
    padding: 1rem 1.25rem 1.25rem;
    background:
      linear-gradient(135deg, #020617, #020617 60%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.75);
  }

  .hero-menu-root {
    list-style: none;
    margin: 0;
    padding: .2rem 0 0;
    display: grid;
    gap: .5rem;
  }

  .hero-menu-root > li {
    padding-left: 0;
    position: relative;
  }

  .hero-menu-root > li::before,
  .hero-menu-root > li::after {
    display: none;
  }

  .hero-menu-root > li > a,
  .hero-menu-root > li > button.menu-parent {
    width: 100%;
    padding: .55rem .65rem;
    border-radius: .8rem;
    border: 0;
    background: #020617;
    color: rgba(226, 232, 240, 0.96);
    font-size: .9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  /* SUBMENUS – simple accordion under parent
     (JS should toggle .is-open on li) */
  .hero-menu-sub {
    position: static;
    margin: .25rem 0 0;
    padding: .4rem .45rem .5rem;
    border-radius: .75rem;
    width: 100%;
    display: none;
  }

  .hero-menu-root > li.is-open > .hero-menu-sub {
    display: block;
  }

  .hero-menu-sub.align-left { left: auto; right: auto; }

  .hero-menu-sub li a {
    padding: .3rem .3rem;
    font-size: .85rem;
  }

  /* GENERIC SECTIONS – linear single column */
  section.scn,
  .service,
  .features,
  .blog,
  .newsletter,
  .footer-top {
    min-height: auto;
    padding: 3rem 1.25rem;
  }

  .content {
    position: static;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .features-list,
  .blog-list,
  .service .container,
  .newsletter .container,
  .footer-top .container {
    display: block !important;
  }

  /* sticky service layout becomes normal stack */
  .service-sticky {
    position: static;
    height: auto;
    margin-block: 2.5rem;
  }

  .service-sticky .pin {
    position: static;
    height: auto;
    display: block;
    padding: 0;
    background: transparent;
  }

  .pin-left,
  .pin-right,
  .stage {
    position: static;
    height: auto;
    opacity: 1 !important;
    transform: none !important;
  }

  .pin-left img {
    width: 100%;
    height: auto;
    max-height: 320px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1rem;
  }

  .text-inner {
    padding: 1rem 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  /* PACKAGE / BLOG / FOOTER GRIDS collapse */
  .package-list,
  .blog-list,
  .quicklink-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quicklink-list {
    gap: .3rem;
  }

  /* Go-top button OK but smaller */
  .go-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 768px) {
  .rail,
  .rail-nav,
  .rail__nav,
  .rail-progress,
  .header__inner,
  .progress-container,
  .progress-indicator,
  .progress-bar,
  .progress-track,
  .progress-dot,
  .progress-dots,
  .timeline,
  .timeline__line,
  .timeline__dot {
    display: none !important;
  }
   .tl__fill,
  .rail__fill {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
  }
}
/* Mobile behaviour: use aria-expanded instead of :hover */
@media (max-width: 767px) {

  /* keep subs hidden by default */
  .hero-menu-sub {
    display: none;
  }

  /* when parent is "opened" by JS, show submenu */
  .hero-menu-root > li.has-sub > .menu-parent[aria-expanded="true"] + .hero-menu-sub {
    display: block;
  }
}
@media (max-width: 767px) {
  .hero-menu-sub {
    display: none;
  }

  .hero-menu-root > li.has-sub:focus-within > .hero-menu-sub {
    display: block;
  }
}
/* ================================
   MOBILE FIXES – NO GUTTERS / NO EXTRA PADDING
   ================================ */
@media (max-width: 768px){

  /* 1. Kill left header / rail spacing on mobile */
  :root{
    --headerW: 0px;
    --rail-gutter: 0px;
    --pad: 0px;           /* default section padding token you used */
  }

  body{
    padding-left: 0 !important;
  }

  /* Hide vertical rail & timeline on phones */
  .rail,
  .timeline{
    display: none !important;
  }

  /* Optional: hide the fixed left 3-col header or turn it into normal top bar */
  .header.header--left.three-cols{
    position: static;
    width: 100%;
    height: auto;
    background: transparent;
  }
  .header.header--left.three-cols .header__inner{
    display: flex;
    width: 100%;
  }
  .header.header--left.three-cols .railcol,
  .header.header--left.three-cols .timelinecol{
    display: none !important;
  }

  /* 2. Text dock: full-width, no extra padding, 1 column */
  #textDock{
    top: 0;
    height: auto;
  }

  #textDock .dock-inset{
    max-width: none;
    margin: 0;
    padding: 0 12px 24px;                 /* very small horizontal padding */
    grid-template-columns: 1fr;          /* ONE column on mobile */
    grid-template-areas:
      "title"
      "lead"
      "form"
      "asideTitle"
      "asideList";
  }

  /* move kicker + list under the main text, align left */
  #textDock .kicker{
    justify-self: flex-start;
    text-align: left;
    margin-top: 1.5rem;
  }
  #textDock .bullets{
    justify-self: flex-start;
    text-align: left;
  }

  /* let the headline breathe but without extra left/right padding */
  #textDock h2{
    font-size: clamp(2rem, 9vw, 3rem);
  }

  /* 3. Focus section container – remove big margins/padding */
  .focus#focus .container{
    max-width: none;
    margin-inline: 0;
    padding-inline: 12px;
  }

  /* Focus grids: single column, edge-to-edge */
  .focus#focus .focus-grid,
  .focus#focus .focus-grid--reverse{
    grid-template-columns: minmax(0,1fr);
  }

  /* 4. Hero: reduce side padding a bit too */
  .hero{
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {


  /* ---------- HEADER / NAV ---------- */


  .header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
    padding: 8px 12px;
  }

  /* kill side timeline + side rail on mobile */
  .timelinecol,
  .railcol {
    display: none !important;
  }

  /* main nav becomes off-canvas dropdown */
  .navbar {
    margin: 0;
  }

  .navbar-list.nav-icons {
    position: fixed;
    inset: calc(var(--headerH) + 4px) 12px auto 12px;
    z-index: 59;
    padding: 12px 10px 10px;
    border-radius: 14px;
    background: rgba(5, 7, 12, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    display: none;
    flex-direction: column;
    gap: 4px;
  }

  .navbar-list.nav-icons .navbar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 14px;
  }

  .navbar-list.nav-icons .navbar-link[aria-current="true"] {
    background: rgba(121, 208, 255, 0.14);
  }

  /* toggle button visible on mobile */
  .nav-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 11, 18, 0.9);
  }

  .nav-toggle-btn .close {
    display: none;
  }

  /* support both body.nav-open and header[data-nav-open] */
  body.nav-open .navbar-list.nav-icons,
  .header[data-nav-open="true"] .navbar-list.nav-icons {
    display: flex;
  }

  body.nav-open .nav-toggle-btn .open,
  .header[data-nav-open="true"] .nav-toggle-btn .open {
    display: none;
  }
  body.nav-open .nav-toggle-btn .close,
  .header[data-nav-open="true"] .nav-toggle-btn .close {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* ---------- BOTTOM QUICK ACTION BAR ---------- */

  .nav-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 61;
    background: radial-gradient(circle at 10% -10%, rgba(121,208,255,.16), transparent 55%),
                rgba(4, 6, 10, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 10px;
  }

  .nav-bottom .navbar-list.nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .nav-bottom .actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-bottom .action-link {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 999px;
    border: 1px solid rgba(121,208,255,0.24);
    background: rgba(7, 10, 16, 0.85);
  }

  .nav-bottom .action-hot {
    background: linear-gradient(135deg, #0b1728, #11375c);
  }

  .nav-bottom ion-icon {
    font-size: 18px;
  }

  .nav-bottom .label {
    white-space: nowrap;
  }

  /* ---------- HERO / FEATURES SECTION ---------- */

  .features .container {
    padding-inline: 14px;
  }

  .hero {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.4rem, 6vw, 2.1rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-menu {
    align-self: flex-start;
  }

  .hero-menu-panel {
    position: fixed;
    inset: auto 10px 84px 10px;
    max-height: 55vh;
    overflow: auto;
    border-radius: 18px;
  }

  /* ---------- STICKY SERVICE SECTION ---------- */

  .service-sticky .pin {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 14px;
  }

  .service-sticky .pin-left {
    position: static;
    width: 100%;
    max-height: 260px;
    overflow: hidden;
    border-radius: 16px;
  }

  .service-sticky .pin-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .service-sticky .pin-right {
    position: static;
  }

  .service-sticky .stage {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    margin-bottom: 18px;
  }

  .service-sticky .text-inner {
    padding: 12px 0;
  }

  /* ---------- FOCUS SECTION (cards + grids) ---------- */

  .focus .container {
    padding-inline: 14px;
  }

  .focus-header .section-title {
    font-size: 1rem;
  }

  .focus-feature-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .focus-feature-card {
    padding: 12px 10px;
  }



  .focus-grid,
  .focus-grid.focus-grid--reverse {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
  }

  .focus-banner {
    order: -1;
  }

  .focus-banner img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
  }

  #textDock {
    position: sticky;
    top: calc(var(--headerH) + 8px);
    inset-inline: auto;
    margin: 0 auto 12px;
    max-width: min(640px, 100% - 24px);
    height: auto;
    max-height: calc(100svh - var(--headerH) - 24px);
    z-index: 50;
  }

  #textDock .dock-inset {
    border-radius: 16px;
    padding: 10px 10px 12px;
    background: radial-gradient(circle at 10% -40%, rgba(121,208,255,.18), transparent 55%),
                rgba(4, 6, 12, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    max-height: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #dock-body {
    overflow-y: auto;
    padding-right: 4px;
  }

  #dock-title {
    font-size: clamp(1rem, 4.6vw, 1.4rem);
    transform: none !important;
    letter-spacing: 0.06em;
    word-spacing: 0.08em;
  }

  #dock-lead {
    font-size: 0.9rem;
  }

  /* simplify phases on mobile */
  #textDock[data-phase="pinTop"],
  #textDock[data-phase="pinBot"] {
    transform: none !important;
  }

  /* ---------- BLOG SECTION ---------- */

  .blog .container {
    padding-inline: 14px;
  }

  .blog-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .blog-card {
    border-radius: 16px;
    overflow: hidden;
  }

  .blog-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* ---------- FOOTER ---------- */

  .footer-top .container {
    padding-inline: 14px;
    padding-bottom: 18px;
  }

  .footer-brand {
    margin-bottom: 14px;
  }

  .quicklink-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .quicklink-box > div {
    width: 100%;
  }

  .quicklink-box h3 {
    font-size: 0.95rem;
  }
}


@media (max-width: 768px){

  /* --- FEATURES / DOTTED 3D SECTION --- */
  .features.dots3d-wrap{
    padding-top: 88px;
    padding-bottom: 80px;
  }

  .features.dots3d-wrap .container{
    padding-inline: 1.25rem;
  }

  .features.dots3d-wrap .hero{
    max-width: 100%;
    gap: 1.25rem;
  }

  .features.dots3d-wrap .hero-title{
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    line-height: 1.15;
  }

  .features.dots3d-wrap .section-text{
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* UI hint badge moves to center bottom */
  .features.dots3d-wrap .ui{
    left: 50%;
    right: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    max-width: 90vw;
    text-align: center;
    font-size: 0.72rem;
    padding-inline: 10px;
  }


  /* --- HERO ACTIONS & BUTTONS --- */
  .hero-actions{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }

  /* keep menu bubble on the right */
  .hero-menu{
    margin-left: 0;
    align-self: flex-end;
  }

  .hero-menu-toggle{
    width: 40px;
    height: 40px;
  }


  /* --- HERO MENU PANEL (3-dot navbar) --- */

  /* compact card so it fits on small screens */
  .hero-menu-panel{
    max-width: min(260px, 82vw);
  }

  .hero-menu-shell{
    padding: 8px 8px 6px;
  }

  .hero-menu-root > li > a,
  .hero-menu-root > li > .menu-parent{
    padding: 7px 8px;
    font-size: 0.86rem;
  }

  /* On mobile: submenus become stacked dropdowns
     instead of side-floating "bars" (no cropping)   */
  .hero-menu-sub{
    position: static;
    margin: 4px 0;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border-radius: 10px;

    transform: none !important;
    opacity: 1;
    pointer-events: auto;

    display: none;          /* hidden by default */
  }

  /* open when parent has .sub-open (set by JS) */
  .hero-menu-root > li.sub-open > .hero-menu-sub{
    display: block;
  }

  /* no connecting laser line on mobile */
  .hero-menu-sub::before{
    display: none;
  }

  /* small indent for submenu links */
  .hero-menu-sub li a{
    padding-left: 16px;
  }

  /* optional: hide chevron on mobile (no side arrow) */
  .hero-menu-root > li.has-sub > .menu-parent .chevron{
    display: none;
  }


  /* --- SERVICE STICKY (image + stages) --- */
  .service-sticky .pin{
    display: flex;
    flex-direction: column;
  }

  .service-sticky .pin-left{
    margin-bottom: 1.5rem;
  }

  .service-sticky .pin-left img{
    width: 100%;
    max-height: 280px;
    object-fit: cover;
  }

  .service-sticky .pin-right .stage .text-inner{
    padding-inline: 0;
  }
}
/* =========================================================
   MOBILE: hero + features RVH canvases & vignette
   ======================================================= */
@media (max-width: 768px){

  /* Let tall copy scroll normally – no clipping */
  .hero,
  .features {
    overflow: visible;
  }

  /* Make sure real content sits above WebGL/vignette */
  .hero > .container,
  .features > .container,
  .features .hero,
  .service-sticky .pin,
  .features .ui {
    position: relative;
     background: transparent !important;
    background-image: none !important;
    z-index: 3;
  }

  /* RVH canvases: slightly bigger than viewport so you
     don't see edges when scrolling / transforming       */
  .hero .rvh,
  .features .rvh {
    position: absolute;
    top: 0;
    left: -15%;
    width: 130%;
    height: 110svh;      /* cover + a bit of extra */
    max-height: none;
  }

  /* Dots 3D canvas – keep but make it lighter + safe */
  .features .dots3d-canvas {
    position: absolute;
    top: 0;
    left: -15%;
    width: 130%;
    height: 110svh;
    opacity: 0.4;        /* softer on mobile */
  }

  /* Vignette: same size as the section, but a bit tighter
     so it doesn’t darken the center too much on phones   */
  .hero .vignette,
  .features .vignette {
    inset: 0;
    background: radial-gradient(
      ellipse at center,
      rgba(0,0,0,0) 28%,
      rgba(0,0,0,0.65) 100%
    );
  }
    #textDock .dock-inset {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
}
@media (max-width: 768px) {

  /* Reset and rebuild the UL layout */
  .blog-list {
    all: unset;
    box-sizing: border-box;

    list-style: none;
    margin: 0;
    padding: 0 12px 12px;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  /* Each <li> becomes a full-width row */
  .blog-list > li {
    all: unset;
    box-sizing: border-box;

    display: block !important;
    width: 100% !important;
    max-width: 480px;
    margin: 0 auto 12px !important;
  }

  /* Make sure the card itself uses the width,
     not some narrow “pill” width from desktop */
  .blog-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .blog-banner img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
  }

  .blog-content {
    padding: 12px 14px 16px !important;
  }

  .blog-title,
  .blog-title a {
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: normal !important; /* prevent weird squishing */
  }
}
/* Base: mobile first (ONE card under another) */
.blog-list {
  display: grid;
  gap: 25px;
  grid-template-columns: minmax(0, 1fr);   /* 1 column on phones */
}

/* Tablets: 2 columns */
@media (min-width: 768px) {
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop: 3 columns */
@media (min-width: 1100px) {
  .blog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Make sure each card uses full width of its column */
.blog-list > li,
.blog-card {
  width: 100%;
}
/* HARD OVERRIDE: mobile blog cards one under another */
@media (max-width: 768px) {

  /* kill any grid/flex slider layout */
  .blog-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    grid-template-columns: none !important;
    flex-wrap: nowrap !important;

    gap: 18px !important;
  }

  .blog-list > li {
    width: 100% !important;
    margin: 0 !important;
  }

  .blog-card {
    width: 100% !important;
    max-width: none !important;
    border-radius: 24px;
    transform: none !important;
  }

  .blog-banner,
  .blog-banner a,
  .blog-banner img {
    width: 100% !important;
    height: auto !important;
  }
}
/* Default: mobile header hidden, desktop header visible */
.header-mobile {
  display: none;
}

/* Desktop keeps your left timeline header */
@media (min-width: 901px) {
  .header.header--left.three-cols {
    display: block;
  }
  .header-mobile {
    display: none;
  }
}
@media (max-width: 900px) {

  /* Hide the old left 3-cols header completely */
  .header.header--left.three-cols {
    display: none !important;
  }

  /* Show mobile header */
  .header-mobile {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    border-radius: 0;
    background: radial-gradient(circle at 10% -30%, rgba(121,208,255,.16), transparent 55%),
                rgba(4, 6, 12, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);

    color: #fff;                 /* text inside header = white */
  }

  .header-mobile .mobile-header-inner {
    max-width: var(--maxw, 1120px);
    margin-inline: auto;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .header-mobile .logo img {
    height: 32px;
    width: auto;
    display: block;

    /* make logo appear white-ish */
    filter: brightness(0) invert(1);
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-mobile .header-cta {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;

    color: #fff;                            /* button text white */
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
  }

  .header-mobile .header-cta ion-icon {
    color: #fff;                            /* arrow icon white */
  }

  .header-mobile .nav-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(7, 10, 16, 0.95);
    color: #fff;                            /* burger/close icon white */
  }

  .header-mobile .nav-toggle-btn ion-icon {
    color: #fff;
  }

  .header-mobile .nav-toggle-btn .close {
    display: none;
  }

  /* Slide-down mobile nav panel */
  .navbar-mobile {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 100%;
    margin-top: 6px;
    border-radius: 1px;
    padding: 5px;
    background: rgba(4, 6, 12, 0.2);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    max-height: 70vh;
    overflow-y: auto;
    justify-content: center;
    text-align: center;
    display: none; /* closed by default */
  }

  .navbar-mobile .navbar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .navbar-mobile .navbar-link {
    display: block;
    border-radius: 1px;
    font-size: 0.9rem;
    text-decoration: none;

    color: #fff;                            /* nav text white */
  }

  .navbar-mobile .navbar-link:hover,
  .navbar-mobile .navbar-link:focus-visible {
    background: rgba(121,208,255,0.5);
    color: #fff;                            /* keep text white on hover */
  }

  /* When header is open */
  .header-mobile.is-open .navbar-mobile {
    display: block;
  }

  .header-mobile.is-open .nav-toggle-btn .open {
    display: none;
  }

  .header-mobile.is-open .nav-toggle-btn .close {
    display: inline-block;
  }

}
/* MOBILE: force white nav text in the slide-down menu */
@media (max-width: 900px) {

  /* base color for all states */
  .navbar.navbar-mobile .navbar-link,
  .navbar.navbar-mobile .navbar-link:link,
  .navbar.navbar-mobile .navbar-link:visited {
    color: #eaf6ff !important;
  }

  /* hover / focus: keep it white on highlighted background */
  .navbar.navbar-mobile .navbar-link:hover,
  .navbar.navbar-mobile .navbar-link:focus-visible {
    color: #ffffff !important;
    background: rgba(121, 208, 255, 0.35);
  }

  /* if you have icons inside links */
  .navbar.navbar-mobile .navbar-link ion-icon {
    color: #eaf6ff !important;
  }
}
