@layer reset, tokens, base, components, utilities;

@layer tokens {
  :root {
    --navy: #131936;
    --navy-deep: #0d1129;
    --lilac: #bfc5db;
    --lilac-light: #eef0f7;
    --gray: #383733;
    --gold: #c99a3d;
    --gold-light: #e6c780;
    --white: #ffffff;
    --paper: #faf9f6;
    --line: rgba(19, 25, 54, 0.14);
    --shadow: 0 24px 70px rgba(19, 25, 54, 0.13);
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 36px;
    --container: 1240px;
    --font-display: "Gambarino", Georgia, serif;
    --font-sans: "Ranade", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  }
}

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
  }

  body {
    margin: 0;
  }

  img,
  video {
    display: block;
    max-width: 100%;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }

  h1,
  h2,
  h3,
  p,
  ul,
  ol,
  figure {
    margin: 0;
  }

  ul,
  ol {
    padding: 0;
  }
}

@layer base {
  body {
    background: var(--white);
    color: var(--gray);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  body.menu-open {
    overflow: hidden;
  }

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

  h1,
  h2,
  h3 {
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.025em;
  }

  h1 {
    font-size: clamp(3.25rem, 7.4vw, 6.9rem);
    line-height: 0.94;
  }

  h2 {
    font-size: clamp(2.6rem, 5.2vw, 5rem);
    line-height: 1;
  }

  h3 {
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
    line-height: 1.1;
  }

  ::selection {
    background: var(--gold);
    color: var(--navy);
  }

  :focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
  }
}

@layer components {
  .container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
  }

  .skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    transform: translateY(-160%);
    transition: transform 180ms ease;
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  .contact-strip {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }

  .contact-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
  }

  .contact-strip a {
    color: var(--white);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: var(--white);
    transition: border-color 200ms ease, box-shadow 200ms ease;
  }

  .site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 12px 38px rgba(19, 25, 54, 0.08);
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    align-items: center;
    min-height: 82px;
    gap: 28px;
  }

  .site-logo {
    display: inline-flex;
    align-items: center;
    width: 176px;
  }

  .site-logo img {
    width: 100%;
    height: auto;
  }

  .site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.2vw, 34px);
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 500;
  }

  .site-nav a {
    position: relative;
    padding-block: 10px;
  }

  .site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 1px;
    background: var(--gold);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .menu-toggle {
    display: none;
  }

  .button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  }

  .button:hover {
    transform: translateY(-2px);
  }

  .button--compact {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 0.84rem;
  }

  .button--primary {
    background: var(--navy);
    color: var(--white);
  }

  .button--primary:hover {
    background: var(--gold);
    color: var(--navy);
  }

  .button--secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.78);
    color: var(--navy);
  }

  .button--secondary:hover {
    border-color: var(--navy);
  }

  .button--light {
    background: var(--white);
    color: var(--navy);
  }

  .button--light:hover {
    background: var(--gold-light);
  }

  .button--outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
  }

  .button--outline-light:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--navy);
  }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .eyebrow::before {
    width: 34px;
    height: 1px;
    background: currentColor;
    content: "";
  }

  .eyebrow--gold {
    color: var(--gold);
  }

  .hero {
    position: relative;
    overflow: clip;
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.78);
  }

  .hero__scene {
    position: absolute;
    inset: 0;
    background: url("../assets/brand/port-hero.webp") center / cover no-repeat;
    filter: saturate(0.55) contrast(1.06);
    pointer-events: none;
  }

  .hero__wash {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(100deg, rgba(10, 14, 34, 0.95) 0%, rgba(13, 18, 44, 0.88) 45%, rgba(19, 25, 54, 0.58) 100%),
      linear-gradient(180deg, rgba(8, 12, 30, 0.55) 0%, transparent 34%, rgba(8, 12, 30, 0.55) 100%);
    pointer-events: none;
  }

  .hero__grid {
    position: relative;
    display: grid;
    align-items: center;
    min-height: calc(100svh - 118px);
    padding-block: clamp(80px, 11vw, 150px) 96px;
  }

  .hero__copy {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    max-width: 15ch;
    font-size: clamp(2.9rem, 5.9vw, 5.4rem);
  }

  .hero h1 {
    color: var(--white);
  }

  .hero h1 em {
    color: var(--gold-light);
    font-style: italic;
  }

  .hero__lead {
    max-width: 650px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.65;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
  }

  .proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 38px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    font-weight: 500;
    list-style: none;
  }

  .proof-list li {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .proof-list__mark {
    position: relative;
    width: 17px;
    height: 17px;
    border: 1px solid var(--gold);
    border-radius: 50%;
  }

  .proof-list__mark::after {
    position: absolute;
    top: 3px;
    left: 5px;
    width: 4px;
    height: 7px;
    border: solid var(--gold-light);
    border-width: 0 1px 1px 0;
    content: "";
    transform: rotate(45deg);
  }

  .service-ribbon {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
  }

  .service-ribbon span {
    padding: 22px 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
  }

  .service-ribbon span + span {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }

  .section {
    padding-block: clamp(82px, 10vw, 142px);
  }

  .section--navy {
    position: relative;
    overflow: clip;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.74);
  }

  .section--navy::after {
    position: absolute;
    top: -190px;
    right: -180px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(201, 154, 61, 0.24);
    border-radius: 50%;
    content: "";
  }

  .section--soft {
    background: var(--lilac-light);
  }

  .section-heading {
    max-width: 790px;
  }

  .section-heading > p:last-child {
    max-width: 650px;
    margin-top: 24px;
    color: rgba(56, 55, 51, 0.72);
    font-size: 1.05rem;
  }

  .section-heading--light h2 {
    color: var(--white);
  }

  .section-heading--light > p:last-child {
    color: rgba(255, 255, 255, 0.7);
  }

  .section-heading--split {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.6fr);
    align-items: start;
    gap: 60px;
    margin-bottom: 58px;
  }

  .section-heading--split > p:last-child {
    margin: 0;
  }

  .values-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 76px;
    background: rgba(255, 255, 255, 0.15);
  }

  .value-card {
    min-height: 310px;
    padding: 34px;
    background: var(--navy);
  }

  .value-card__number {
    display: block;
    margin-bottom: 70px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.35rem;
  }

  .value-card h3 {
    color: var(--white);
    font-size: 2.8rem;
  }

  .value-card p {
    max-width: 320px;
    margin-top: 18px;
  }

  .process-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
    align-items: center;
    gap: clamp(60px, 8vw, 112px);
  }

  .process-list {
    display: grid;
    gap: 0;
    margin-top: 46px;
    list-style: none;
  }

  .process-list li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    padding-block: 22px;
    border-top: 1px solid rgba(19, 25, 54, 0.14);
  }

  .process-list > li > span {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.15rem;
  }

  .process-list h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
  }

  .process-list p {
    margin-top: 4px;
    color: rgba(56, 55, 51, 0.7);
    font-size: 0.9rem;
  }

  .process-media {
    position: relative;
    overflow: hidden;
    min-height: 700px;
    border-radius: var(--radius-lg);
    background: var(--navy);
    box-shadow: var(--shadow);
  }

  .process-media video {
    width: 100%;
    height: 700px;
    object-fit: cover;
  }

  .process-media::after {
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(transparent, rgba(13, 17, 41, 0.88));
    content: "";
    pointer-events: none;
  }

  .video-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(19, 25, 54, 0.7);
    color: var(--white);
    cursor: pointer;
    font-size: 0.72rem;
  }

  .process-media__note {
    position: absolute;
    right: 34px;
    bottom: 34px;
    left: 34px;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    color: var(--white);
  }

  .process-media__note span {
    color: var(--gold-light);
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .process-media__note strong {
    max-width: 230px;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.1;
    text-align: right;
  }

  .section--cases {
    overflow: clip;
  }

  .case-list {
    display: grid;
    gap: 34px;
  }

  .case-study {
    display: grid;
    min-height: 590px;
    grid-template-columns: minmax(300px, 0.38fr) minmax(0, 0.62fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
  }

  .case-study--reverse {
    grid-template-columns: minmax(0, 0.62fr) minmax(300px, 0.38fr);
  }

  .case-study--reverse .case-study__content {
    order: 2;
  }

  .case-study__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 68px);
  }

  .case-study__index {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .case-study h3 {
    margin-top: 18px;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
  }

  .case-study__content > p {
    margin-top: 22px;
    color: rgba(56, 55, 51, 0.72);
  }

  .badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    list-style: none;
  }

  .badge-list li {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 500;
  }

  .case-gallery {
    display: grid;
    gap: 4px;
    padding: 4px;
    background: var(--white);
  }

  .case-gallery--three {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 1fr 1fr;
  }

  .case-gallery--three .case-gallery__primary {
    grid-row: 1 / 3;
  }

  .case-gallery--two {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-gallery figure {
    overflow: hidden;
    min-height: 0;
  }

  .case-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 550ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .case-gallery figure:hover img {
    transform: scale(1.035);
  }

  .faq-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.08fr);
    align-items: start;
    gap: clamp(58px, 8vw, 120px);
  }

  .faq-list {
    border-top: 1px solid var(--line);
  }

  .faq-list details {
    border-bottom: 1px solid var(--line);
  }

  .faq-list summary {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--navy);
    cursor: pointer;
    font-weight: 500;
    list-style: none;
  }

  .faq-list summary::-webkit-details-marker {
    display: none;
  }

  .faq-list summary span {
    position: relative;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .faq-list summary span::before,
  .faq-list summary span::after {
    position: absolute;
    top: 12px;
    left: 7px;
    width: 10px;
    height: 1px;
    background: var(--navy);
    content: "";
    transition: transform 180ms ease;
  }

  .faq-list summary span::after {
    transform: rotate(90deg);
  }

  .faq-list details[open] summary span::after {
    transform: rotate(0);
  }

  .faq-list details p {
    max-width: 620px;
    padding: 0 50px 26px 0;
    color: rgba(56, 55, 51, 0.72);
  }

  .final-cta {
    position: relative;
    overflow: hidden;
    padding-block: clamp(90px, 11vw, 160px);
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
  }

  .final-cta__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .final-cta h2 {
    max-width: 930px;
    color: var(--white);
  }

  .final-cta p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 24px;
    font-size: 1.08rem;
  }

  .final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
  }

  .final-cta__compass {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(850px, 78vw);
    height: min(850px, 78vw);
    border: 1px solid rgba(201, 154, 61, 0.13);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .final-cta__compass::before,
  .final-cta__compass::after {
    position: absolute;
    background: rgba(201, 154, 61, 0.13);
    content: "";
  }

  .final-cta__compass::before {
    top: -10%;
    left: 50%;
    width: 1px;
    height: 120%;
  }

  .final-cta__compass::after {
    top: 50%;
    left: -10%;
    width: 120%;
    height: 1px;
  }

  .site-footer {
    padding: 72px 0 26px;
    background: #090c1e;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.88rem;
  }

  .site-footer__grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 0.4fr 0.5fr;
    gap: 80px;
    padding-bottom: 60px;
  }

  .site-footer__brand img {
    width: 210px;
    height: auto;
  }

  .site-footer__brand p {
    max-width: 420px;
    margin-top: 24px;
  }

  .site-footer h2 {
    margin-bottom: 20px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .site-footer ul {
    display: grid;
    gap: 10px;
    list-style: none;
  }

  .site-footer a:hover {
    color: var(--gold-light);
  }

  .site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.76rem;
  }

  .floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    transition: transform 180ms ease;
  }

  .floating-whatsapp:hover {
    transform: translateY(-3px);
  }

  .floating-whatsapp__label {
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(19, 25, 54, 0.16);
  }

  .floating-whatsapp__badge {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.36);
  }

  .floating-whatsapp__badge svg {
    width: 30px;
    height: 30px;
  }
}

@layer utilities {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.78, 0.2, 1);
  }

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

  @media (max-width: 1080px) {
    .site-header__inner {
      grid-template-columns: 170px 1fr auto;
      gap: 18px;
    }

    .site-nav {
      gap: 16px;
      font-size: 0.78rem;
    }

    .process-layout {
      grid-template-columns: 1fr 0.85fr;
      gap: 52px;
    }

    .case-study,
    .case-study--reverse {
      grid-template-columns: 0.42fr 0.58fr;
    }
  }

  @media (max-width: 900px) {
    html {
      scroll-padding-top: 82px;
    }

    .contact-strip {
      display: none;
    }

    .site-header__inner {
      grid-template-columns: 1fr auto;
      min-height: 76px;
    }

    .site-logo {
      width: 154px;
    }

    .header-cta {
      display: none;
    }

    .menu-toggle {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: transparent;
      color: var(--navy);
      cursor: pointer;
      font-size: 0.78rem;
      font-weight: 600;
    }

    .menu-toggle__icon,
    .menu-toggle__icon::before,
    .menu-toggle__icon::after {
      display: block;
      width: 18px;
      height: 1px;
      background: currentColor;
      content: "";
      transition: transform 180ms ease;
    }

    .menu-toggle__icon {
      position: relative;
    }

    .menu-toggle__icon::before {
      position: absolute;
      top: -5px;
    }

    .menu-toggle__icon::after {
      position: absolute;
      top: 5px;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon {
      background: transparent;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
      top: 0;
      transform: rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
      top: 0;
      transform: rotate(-45deg);
    }

    .site-nav {
      position: fixed;
      top: 76px;
      right: 0;
      bottom: 0;
      left: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 0;
      padding: 36px 20px;
      background: var(--white);
      font-family: var(--font-display);
      font-size: clamp(2rem, 7vw, 3rem);
      opacity: 0;
      pointer-events: none;
      transform: translateY(-12px);
      transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-nav.is-open {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .site-nav a {
      width: 100%;
      padding: 14px 0;
      border-bottom: 1px solid var(--line);
    }

    .site-nav a::after {
      display: none;
    }

    .hero__grid {
      min-height: 78svh;
      padding-block: 96px 78px;
    }

    .hero__copy {
      max-width: 740px;
    }

    .service-ribbon {
      grid-template-columns: repeat(2, 1fr);
    }

    .service-ribbon span:nth-child(3) {
      border-left: 0;
      border-top: 1px solid var(--line);
    }

    .service-ribbon span:nth-child(4) {
      border-top: 1px solid var(--line);
    }

    .section-heading--split,
    .process-layout,
    .faq-layout {
      grid-template-columns: 1fr;
    }

    .section-heading--split {
      align-items: start;
      gap: 24px;
    }

    .values-grid {
      grid-template-columns: 1fr;
    }

    .value-card {
      min-height: 250px;
    }

    .value-card__number {
      margin-bottom: 44px;
    }

    .process-media {
      min-height: 620px;
    }

    .process-media video {
      height: 620px;
    }

    .case-study,
    .case-study--reverse {
      grid-template-columns: 1fr;
    }

    .case-study--reverse .case-study__content {
      order: 0;
    }

    .case-gallery {
      min-height: 520px;
    }

    .faq-layout {
      gap: 52px;
    }

    .site-footer__grid {
      grid-template-columns: 1fr 1fr;
      gap: 50px;
    }

    .site-footer__brand {
      grid-column: 1 / 3;
    }
  }

  @media (max-width: 600px) {
    .container {
      width: min(calc(100% - 28px), var(--container));
    }

    h1 {
      font-size: clamp(3rem, 15.5vw, 4.65rem);
    }

    h2 {
      font-size: clamp(2.5rem, 12vw, 3.75rem);
    }

    .site-header__inner {
      min-height: 70px;
    }

    .site-nav {
      top: 70px;
    }

    .site-logo {
      width: 142px;
    }

    .menu-toggle__label {
      display: none;
    }

    .hero__grid {
      min-height: 0;
      padding: 74px 0 58px;
    }

    .hero__lead {
      margin-top: 22px;
    }

    .hero__actions {
      display: grid;
    }

    .button {
      width: 100%;
    }

    .proof-list {
      display: grid;
      gap: 11px;
    }

    .service-ribbon span {
      padding: 17px 8px;
      font-size: 0.65rem;
    }

    .section {
      padding-block: 80px;
    }

    .section-heading--split {
      margin-bottom: 38px;
    }

    .value-card {
      padding: 28px;
    }

    .value-card h3 {
      font-size: 2.35rem;
    }

    .process-media,
    .process-media video {
      min-height: 530px;
      height: 530px;
    }

    .process-media__note {
      right: 22px;
      bottom: 24px;
      left: 22px;
      flex-direction: column;
      align-items: flex-start;
    }

    .process-media__note strong {
      text-align: left;
    }

    .case-study {
      min-height: auto;
      border-radius: var(--radius-md);
    }

    .case-study__content {
      padding: 36px 26px;
    }

    .case-gallery {
      min-height: 480px;
    }

    .case-gallery--three {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1.3fr 0.7fr;
    }

    .case-gallery--three .case-gallery__primary {
      grid-column: 1 / 3;
      grid-row: 1;
    }

    .case-gallery--two {
      min-height: 420px;
    }

    .faq-list summary {
      min-height: 92px;
      font-size: 0.92rem;
      line-height: 1.35;
    }

    .final-cta__actions {
      display: grid;
      width: 100%;
    }

    .site-footer__grid {
      grid-template-columns: 1fr;
      gap: 38px;
    }

    .site-footer__brand {
      grid-column: auto;
    }

    .site-footer__bottom {
      align-items: flex-start;
      flex-direction: column;
    }

    .floating-whatsapp {
      right: 14px;
      bottom: max(14px, env(safe-area-inset-bottom));
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }

    [data-reveal] {
      opacity: 1;
      transform: none;
    }
  }
}

@layer components {
  /* ---- mosaico de servicios ---- */
  #servicios {
    padding-bottom: 0;
  }

  .service-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(48px, 6vw, 76px);
  }

  .service-tile {
    position: relative;
    display: flex;
    min-height: 420px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 30px 26px 26px;
    background: var(--navy);
    color: var(--white);
    isolation: isolate;
  }

  .service-tile img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.78, 0.2, 1);
  }

  .service-tile::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(19, 25, 54, 0.62) 0%, rgba(19, 25, 54, 0.9) 62%, rgba(19, 25, 54, 0.94) 100%),
      linear-gradient(0deg, rgba(19, 25, 54, 0.4), rgba(19, 25, 54, 0.4));
    content: "";
    transition: background 300ms ease;
  }

  .service-tile:hover img {
    transform: scale(1.06);
  }

  .service-tile:hover::after {
    background:
      linear-gradient(180deg, rgba(11, 15, 38, 0.6) 0%, rgba(11, 15, 38, 0.82) 100%),
      linear-gradient(0deg, rgba(201, 154, 61, 0.16), rgba(201, 154, 61, 0.16));
  }

  .service-tile + .service-tile {
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.14);
  }

  .service-tile__body {
    display: grid;
    gap: 10px;
  }

  .service-tile__title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.7vw, 1.7rem);
    line-height: 1.15;
  }

  .service-tile__text {
    max-width: 30ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.87rem;
    line-height: 1.5;
  }

  .service-tile__arrow {
    display: grid;
    width: 42px;
    height: 42px;
    margin-top: 26px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: var(--white);
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
  }

  .service-tile__arrow svg {
    width: 18px;
    height: 18px;
  }

  .service-tile:hover .service-tile__arrow {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy);
  }

  /* ---- detalle servicio a servicio ---- */
  .service-detail {
    position: relative;
    overflow: clip;
    padding-block: clamp(78px, 9vw, 128px);
    background: var(--white);
  }

  .service-detail--soft {
    background: var(--lilac-light);
  }

  .service-detail--navy {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.74);
  }

  .service-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.42fr);
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
  }

  .service-detail__copy h2 {
    max-width: 20ch;
  }

  .service-detail--navy .service-detail__copy h2 {
    color: var(--white);
  }

  .service-detail__copy > p {
    max-width: 68ch;
    margin-top: 26px;
    color: rgba(56, 55, 51, 0.76);
    font-size: 1.05rem;
    line-height: 1.68;
  }

  .service-detail--navy .service-detail__copy > p {
    color: rgba(255, 255, 255, 0.72);
  }

  .service-detail__copy .button {
    margin-top: 36px;
  }

  .service-detail__icon {
    display: grid;
    place-items: center;
    color: var(--navy);
  }

  .service-detail--navy .service-detail__icon {
    color: var(--gold-light);
  }

  .service-detail__icon svg {
    width: clamp(130px, 15vw, 190px);
    height: auto;
  }

  /* ---- pasos del departamento de comex ---- */
  .service-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: clamp(50px, 6vw, 78px);
  }

  .service-steps article {
    padding: clamp(26px, 2.4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
  }

  .service-steps h3 {
    display: flex;
    gap: 10px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
  }

  .service-steps h3 span {
    color: var(--gold-light);
  }

  .service-steps ul {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    list-style: none;
  }

  .service-steps li {
    position: relative;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .service-steps li::before {
    position: absolute;
    top: 9px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    content: "";
  }

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

    .service-tile:nth-child(odd) {
      box-shadow: none;
    }

    .service-tile:nth-child(n + 3) {
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }

    .service-tile:nth-child(4) {
      box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }

    .service-steps {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 900px) {
    .service-detail__grid {
      grid-template-columns: 1fr;
      gap: 42px;
    }

    .service-detail__icon {
      justify-items: start;
    }
  }

  @media (max-width: 600px) {
    .service-tiles {
      grid-template-columns: 1fr;
    }

    .service-tile {
      min-height: 320px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    }

    .service-steps {
      grid-template-columns: 1fr;
    }

    .service-detail__copy .button {
      width: 100%;
    }
  }
}

@layer components {
  @media (max-width: 900px) {
    .floating-whatsapp__label {
      display: none;
    }
  }
}

/* ------------------------------------------------------------------
   HERO LUMINOSO: fotografía original y agua animada en una capa WebGL.
   La fotografía CSS permanece como respaldo si no hay aceleración gráfica.
   Para volver al hero oscuro: sacar la clase "hero--bright" del
   <section> en index.html. Este bloque queda inerte.
   ------------------------------------------------------------------ */
@layer components {
  .hero--bright {
    background: #cfe0ec;
    color: rgba(19, 25, 54, 0.78);
    /* El dorado de marca da 2.34:1 sobre este fondo claro (falla WCAG AA).
       Dos tonos mas oscuros, uno por umbral: 4.5:1 texto chico, 3:1 titular. */
    --gold-on-light: #8a6420;        /* 4.87:1 */
    --gold-on-light-lg: #966d22;     /* mas oscuro: el velo bajo dejo al #a87f2a en 2.67:1 */
  }

  .hero--bright .eyebrow--gold {
    color: var(--gold-on-light);
  }

  .hero--bright .proof-list__mark {
    border-color: var(--gold-on-light);
  }

  .hero--bright .proof-list__mark::after {
    border-color: var(--gold-on-light);
  }

  .hero--bright .hero__scene {
    background-image: url("../assets/brand/hero-ship-poster.jpg");
    transform: scale(1.025);
    filter: saturate(1.06) contrast(1.02) brightness(1.04);
  }

  /* Velo claro: mantiene legible el texto oscuro sobre la foto. */
  .hero--bright .hero__wash {
    background:
      linear-gradient(100deg, rgba(250, 249, 246, 0.88) 0%, rgba(250, 249, 246, 0.74) 38%, rgba(250, 249, 246, 0.05) 72%, rgba(250, 249, 246, 0) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, transparent 26%, rgba(207, 224, 236, 0.14) 100%);
  }

  .hero--bright h1,
  .hero--bright h1 em {
    color: var(--navy);
  }

  .hero--bright h1 em {
    color: var(--gold-on-light-lg);
  }

  .hero--bright .hero__lead {
    color: rgba(19, 25, 54, 0.72);
  }

  .hero--bright .proof-list {
    color: rgba(19, 25, 54, 0.8);
  }

  .hero--bright .button--light {
    background: var(--navy);
    color: var(--white);
  }

  .hero--bright .button--light:hover {
    background: var(--gold);
    color: var(--navy);
  }

  .hero--bright .button--outline-light {
    border-color: rgba(19, 25, 54, 0.28);
    color: var(--navy);
  }

  .hero--bright .button--outline-light:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
  }

  .hero--bright .service-ribbon {
    border-color: rgba(19, 25, 54, 0.14);
    background: rgba(255, 255, 255, 0.62);
  }

  .hero--bright .service-ribbon span {
    color: rgba(19, 25, 54, 0.82);
  }

  .hero--bright .service-ribbon span + span {
    border-left-color: rgba(19, 25, 54, 0.12);
  }

  .hero__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms ease;
  }

  .hero__video.is-ready {
    opacity: 1;
  }

  .hero__ocean {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    filter: saturate(1.06) contrast(1.02) brightness(1.04);
  }

  .hero__ocean.is-ready {
    opacity: 1;
  }

  .hero__motion-controls {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    padding-block: 12px;
  }

  .hero__motion-toggle {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(19, 25, 54, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--navy);
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
  }

  .hero__motion-toggle:hover {
    background: var(--white);
  }

  .hero__motion-toggle:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 4px;
  }

  .hero__motion-toggle[hidden] {
    display: none;
  }

  @media (max-width: 699px) {
    .hero--bright .hero__scene {
      background-position: 68% center;
    }
  }
}

/* ------------------------------------------------------------------
   PAQUETES  (reemplaza la antigua seccion "proceso")
   ------------------------------------------------------------------ */
@layer components {
  .pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 20px;
    margin-top: clamp(38px, 5vw, 58px);
  }

  .pack-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 26px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
  }

  .pack-card--feature {
    border-color: rgba(201, 154, 61, 0.45);
    background: var(--navy);
    color: rgba(255, 255, 255, 0.82);
  }

  .pack-card__code {
    margin: 0;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .pack-card--feature .pack-card__code {
    color: var(--gold-light);
  }

  .pack-card h3 {
    margin: 0;
    font-size: 1.32rem;
    line-height: 1.2;
  }

  .pack-card--feature h3 {
    color: var(--white);
  }

  .pack-card__who {
    margin: 0 0 6px;
    color: rgba(56, 55, 51, 0.72);
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .pack-card--feature .pack-card__who {
    color: rgba(255, 255, 255, 0.74);
  }

  .pack-card__list {
    display: grid;
    gap: 9px;
    margin: 4px 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    list-style: none;
  }

  .pack-card--feature .pack-card__list {
    border-top-color: rgba(255, 255, 255, 0.2);
  }

  .pack-card__list li {
    position: relative;
    padding-left: 20px;
    color: rgba(56, 55, 51, 0.86);
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .pack-card--feature .pack-card__list li {
    color: rgba(255, 255, 255, 0.86);
  }

  .pack-card__list li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 7px;
    height: 7px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    content: "";
  }

  .pack-card--feature .pack-card__list li::before {
    border-color: var(--gold-light);
  }

  .pack-outro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 296px);
    align-items: center;
    gap: clamp(34px, 6vw, 80px);
    margin-top: clamp(38px, 5vw, 58px);
  }

  .pack-outro__copy {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 26px;
  }

  .pack-note {
    max-width: 52ch;
    margin: 0;
    color: rgba(56, 55, 51, 0.72);
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .pack-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--navy);
    /* El video es vertical (480x848). El contenedor toma su misma
       proporcion para que entre entero, sin recorte. */
    aspect-ratio: 480 / 848;
  }

  .pack-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .pack-media .process-media__note {
    right: 22px;
    bottom: 22px;
    left: 22px;
    flex-direction: column;
    align-items: start;
    gap: 6px;
  }

  .pack-media .process-media__note strong {
    max-width: none;
    font-size: 1.32rem;
    text-align: left;
  }

  .pack-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(13, 17, 41, 0.88));
    content: "";
    pointer-events: none;
  }

  @media (max-width: 860px) {
    .pack-outro {
      grid-template-columns: 1fr;
      gap: 34px;
    }

    .pack-media {
      width: 100%;
      max-width: 320px;
      margin-inline: auto;
    }
  }
}
