/* ═══════════════════════════════════════════════════════════════
   FASTHARMONY — ESTILOS PRINCIPAIS
   State-of-the-art CSS: @layer, nesting, @property, scroll-driven
   animations, container queries, color-mix(), :has(), @starting-style
═══════════════════════════════════════════════════════════════ */

/* ─── LAYER DECLARATION ────────────────────────────────────── */
@layer reset, tokens, base, layout, components, utilities, animations;


/* ─── @PROPERTY — Animatable gradient positions ─────────────── */
@property --blob1-x { syntax: '<percentage>'; inherits: false; initial-value: 72%; }
@property --blob1-y { syntax: '<percentage>'; inherits: false; initial-value: 42%; }
@property --blob2-x { syntax: '<percentage>'; inherits: false; initial-value: 28%; }
@property --blob2-y { syntax: '<percentage>'; inherits: false; initial-value: 68%; }
@property --underline-width { syntax: '<percentage>'; inherits: false; initial-value: 0%; }


/* ════════════════════════════════════════════════════════════ */
@layer reset {

  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

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

}


/* ════════════════════════════════════════════════════════════ */
@layer tokens {

  :root {
    /* — Colour palette — */
    --void:       #050504;
    --void-2:     #0a0907;
    --void-3:     #0f0e0b;
    --void-4:     #151310;
    --void-5:     #1c1a16;

    --aurum:        #b8965a;
    --aurum-light:  #ccaa72;
    --aurum-pale:   #dfc99a;
    --aurum-dim:    color-mix(in oklab, #b8965a 12%, transparent);
    --aurum-line:   color-mix(in oklab, #b8965a 22%, transparent);

    --pearl:      #ece7de;
    --pearl-mid:  #90897f;
    --pearl-dim:  #4a4640;

    --hairline:   rgba(255, 255, 255, 0.055);
    --hairline-warm: rgba(255, 235, 190, 0.06);

    /* — Typography — */
    --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
    --font-sans:    'Barlow', system-ui, sans-serif;

    /* — Spacing & sizing — */
    --max-width:  1320px;
    --nav-h:      72px;

    /* — Easing — */
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:   cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t:          0.35s var(--ease);
  }

}


/* ════════════════════════════════════════════════════════════ */
@layer base {

  html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--void-5) var(--void);
  }

  body {
    font-family: var(--font-sans);
    background-color: var(--void);
    color: var(--pearl);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none; /* hides native cursor — custom one used */
  }

  /* Restore cursor on touch devices */
  @media (pointer: coarse) {
    body { cursor: auto; }
  }

  ::-webkit-scrollbar { width: 5px; }
  ::-webkit-scrollbar-track { background: var(--void); }
  ::-webkit-scrollbar-thumb { background: var(--void-5); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--aurum); }

  ::selection {
    background: color-mix(in oklab, var(--aurum) 28%, transparent);
    color: var(--pearl);
  }

  h1, h2, h3, h4, h5 {
    text-wrap: balance;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* Bebas Neue não tem itálico — em headings = cor dourada sem inclinar */
  h1 em, h2 em, h3 em, h4 em {
    font-style: normal;
    color: var(--aurum);
  }

}


/* ════════════════════════════════════════════════════════════ */
@layer layout {

  .container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 1.25rem;

    @media (width >= 640px)  { padding-inline: 2rem; }
    @media (width >= 1024px) { padding-inline: 3rem; }
  }

}


/* ════════════════════════════════════════════════════════════ */
@layer components {

  /* ══ GRAIN OVERLAY ══════════════════════════════════════════ */
  .grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8000;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 280px 280px;
    mix-blend-mode: overlay;
  }


  /* ══ PROGRESS BAR (pure CSS scroll-driven) ══════════════════ */
  .progress-bar {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 2px;
    background: linear-gradient(to right, var(--aurum), var(--aurum-light));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9100;

    @supports (animation-timeline: scroll()) {
      animation: progressFill linear both;
      animation-timeline: scroll(root block);
    }
  }


  /* ══ CUSTOM CURSOR ══════════════════════════════════════════ */
  .cursor {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 6px;
    height: 6px;
    background: var(--aurum);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s, transform 0.15s var(--ease-spring), background 0.2s;
    opacity: 0;

    @media (pointer: coarse) { display: none; }
  }

  .cursor-ring {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--aurum-line);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease), height 0.35s var(--ease),
                border-color 0.35s, opacity 0.3s;
    opacity: 0;

    @media (pointer: coarse) { display: none; }
  }

  /* Expand ring on interactive elements — uses :has() */
  body:has(a:hover) .cursor-ring,
  body:has(button:hover) .cursor-ring {
    width: 52px;
    height: 52px;
    border-color: color-mix(in oklab, var(--aurum) 55%, transparent);
  }

  body:has(input:focus) .cursor,
  body:has(textarea:focus) .cursor {
    transform: translate(-50%, -50%) scale(0.4);
    background: var(--aurum-light);
  }


  /* ══ NAVEGAÇÃO ══════════════════════════════════════════════ */
  .nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background var(--t), backdrop-filter var(--t), box-shadow var(--t);

    &.scrolled {
      background: color-mix(in oklab, var(--void) 90%, transparent);
      backdrop-filter: blur(20px) saturate(1.5);
      -webkit-backdrop-filter: blur(20px) saturate(1.5);
      box-shadow: 0 1px 0 var(--hairline);
    }
  }

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

    @media (width >= 640px)  { padding-inline: 2rem; }
    @media (width >= 1024px) { padding-inline: 3rem; }
  }

  /* Logo */
  .nav__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
  }

  .nav__logo-fast    { color: var(--pearl); }
  .nav__logo-harmony { color: var(--aurum); }

  /* Desktop links */
  .nav__links {
    display: none;
    align-items: center;
    gap: 2.75rem;

    @media (width >= 900px) { display: flex; }
  }

  .nav__link {
    position: relative;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pearl-mid);
    transition: color var(--t);

    &::after {
      content: '';
      position: absolute;
      inset-block-end: -4px;
      inset-inline-start: 0;
      height: 1px;
      width: 0;
      background: var(--aurum);
      transition: width 0.3s var(--ease-out);
    }

    &:hover,
    &.active {
      color: var(--aurum);

      &::after { width: 100%; }
    }
  }

  .nav__link--cta {
    padding: 0.45rem 1.25rem;
    border: 1px solid var(--aurum-line);
    border-radius: 1px;
    color: var(--aurum);
    transition: background var(--t), border-color var(--t), color var(--t);

    &::after { display: none; }

    &:hover {
      background: var(--aurum-dim);
      border-color: color-mix(in oklab, var(--aurum) 40%, transparent);
    }
  }

  /* Hamburger */
  .nav__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px 0;

    span {
      display: block;
      width: 100%;
      height: 1px;
      background: var(--pearl);
      transition: var(--t);
      transform-origin: center;
    }

    &.open {
      span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
      span:nth-child(2) { opacity: 0; transform: scaleX(0); }
      span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    }

    @media (width >= 900px) { display: none; }
  }


  /* ══ MENU MOBILE ════════════════════════════════════════════ */
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: color-mix(in oklab, var(--void) 96%, transparent);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease);

    &.open {
      opacity: 1;
      pointer-events: all;
    }
  }

  .mobile-menu__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    text-align: center;
  }

  .mobile-menu__link {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pearl-mid);
    transition: color var(--t);

    &:hover { color: var(--aurum); }
  }

  .mobile-menu__link--cta {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aurum);
    padding: 0.75rem 2.25rem;
    border: 1px solid var(--aurum-line);
    border-radius: 1px;

    &:hover { background: var(--aurum-dim); }
  }


  /* ══ BOTÕES ═════════════════════════════════════════════════ */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.25rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 1px;
    transition: var(--t), transform var(--t), box-shadow var(--t);
    white-space: nowrap;
    cursor: none;
  }

  .btn--gold {
    background: var(--aurum);
    color: var(--void);

    &:hover {
      background: var(--aurum-light);
      transform: translateY(-2px);
      box-shadow: 0 10px 40px color-mix(in oklab, var(--aurum) 22%, transparent);
    }

    &:active { transform: translateY(0); }
  }

  .btn--ghost {
    background: transparent;
    color: var(--pearl);
    border: 1px solid rgba(255, 255, 255, 0.18);

    &:hover {
      border-color: var(--aurum-line);
      color: var(--aurum);
      transform: translateY(-2px);
    }
  }

  .btn--full { width: 100%; justify-content: center; }


  /* ══ SECÇÃO — elementos comuns ══════════════════════════════ */
  .section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--aurum);
    margin-block-end: 1.25rem;

    &::before {
      content: '';
      display: block;
      width: 30px;
      height: 1px;
      background: var(--aurum);
      flex-shrink: 0;
    }
  }

  .section__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-block-end: 1.5rem;

    em {
      font-style: normal;
      color: var(--aurum);
    }
  }

  .section__title--light { color: #fff; }


  /* ══ HERO ═══════════════════════════════════════════════════ */
  .hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  /* Animated gradient mesh background */
  .hero__bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/hero-car.jpg') center/cover no-repeat, #050504;
    transform: scale(1.08);
    animation: heroKenBurns 24s ease-in-out infinite alternate;
  }

  /* Video background — overlays the image when playing */
  .hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.2s ease;

    /* Show once loaded */
    &:not([readyState="0"]) { opacity: 1; }
  }

  /* Ensure blobs appear above video but below overlay */
  .hero__blob { z-index: 2; }

  /* Gradient blobs (animated with @property) */
  .hero__blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }

  .hero__blob--1 {
    width: 70%;
    height: 80%;
    inset-block-start: -10%;
    inset-inline-end: -5%;
    background: radial-gradient(ellipse at center, color-mix(in oklab, var(--aurum) 8%, transparent) 0%, transparent 65%);
    animation: blobDrift1 18s ease-in-out infinite alternate;
  }

  .hero__blob--2 {
    width: 55%;
    height: 65%;
    inset-block-end: -10%;
    inset-inline-start: -5%;
    background: radial-gradient(ellipse at center, color-mix(in oklab, var(--aurum) 5%, transparent) 0%, transparent 65%);
    animation: blobDrift2 22s ease-in-out infinite alternate;
  }

  /* Vignette */
  .hero__overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to right, rgba(5,5,4, 0.88) 0%, rgba(5,5,4, 0.60) 50%, rgba(5,5,4, 0.35) 100%),
      linear-gradient(to top, rgba(5,5,4, 0.7) 0%, transparent 40%);
  }

  /* Decorative vertical lines */
  .hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
  }

  .hero__decor-line {
    position: absolute;
    inset-block: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, var(--hairline-warm) 30%, var(--hairline-warm) 70%, transparent 100%);
    animation: lineFlicker 8s ease-in-out infinite;

    &:nth-child(1) {
      inset-inline-end: 18%;
      animation-delay: 0s;
    }

    &:nth-child(2) {
      inset-inline-end: 24%;
      animation-delay: 2s;
    }
  }

  /* Rotated brand watermark */
  .hero__watermark {
    position: absolute;
    inset-inline-start: -0.5rem;
    inset-block-start: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-size: 0.5rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--pearl-dim);
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1.2s var(--ease-out) 1.4s forwards;

    @media (width < 768px) { display: none; }
  }

  /* Hero content */
  .hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    width: 100%;
    margin-inline: auto;
    padding: calc(var(--nav-h) + 5rem) 1.25rem 5rem;

    @media (width >= 640px)  { padding-inline: 2rem; }
    @media (width >= 1024px) { padding-inline: 3rem; }
  }

  .hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8.5vw, 5.8rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin-block-end: 1.25rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.2s forwards;

    em {
      font-style: normal;
      color: var(--aurum);
    }
  }

  .hero__eyebrow {
    display: block;
    font-size: clamp(0.95rem, 1.9vw, 1.12rem);
    font-weight: 300;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.8;
    color: rgba(236, 231, 222, 0.68);
    margin-block-end: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.35s forwards;
    max-width: 520px;

    &::before {
      display: none;
    }

    em {
      font-style: normal;
      color: var(--aurum);
      font-weight: 500;
    }
  }

  .hero__subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    font-weight: 300;
    line-height: 1.75;
    color: rgba(236, 231, 222, 0.5);
    max-width: 480px;
    margin-block-end: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.5s forwards;
    letter-spacing: 0.005em;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.8s forwards;
  }

  /* Scroll indicator */
  .hero__scroll {
    position: absolute;
    inset-block-end: 2.5rem;
    inset-inline-end: 3rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1.4s forwards;

    @media (width < 640px) { display: none; }
  }

  .hero__scroll-label {
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--pearl-dim);
    writing-mode: vertical-rl;
  }

  .hero__scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, var(--aurum), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
  }

  /* Gold line at hero bottom */
  .hero::after {
    content: '';
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(to right, var(--aurum), transparent 60%);
  }


  /* ══ MARQUEE ════════════════════════════════════════════════ */
  .marquee {
    overflow: hidden;
    border-block: 1px solid var(--hairline);
    background: var(--void-2);
    padding-block: 1.1rem;

    &:hover .marquee__track { animation-play-state: paused; }
  }

  .marquee__track {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    width: max-content;
    animation: marquee 32s linear infinite;
  }

  .marquee__word {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--pearl-dim);
    white-space: nowrap;
  }

  .marquee__dot {
    color: var(--aurum);
    font-size: 0.8rem;
  }


  /* ══ VALORES ════════════════════════════════════════════════ */
  .values {
    padding-block: 7rem;
    background: var(--void-2);
    border-block-end: 1px solid var(--hairline);
  }

  .values__header {
    max-width: 480px;
    margin-block-end: 4.5rem;
  }

  .values__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;

    @media (width >= 768px) {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .values__item {
    position: relative;
    padding: 2.75rem 2rem 2.75rem;
    border-inline-end: 1px solid var(--hairline);
    border-block-start: 1px solid var(--hairline);
    transition: background var(--t);
    overflow: hidden;

    /* Remove right border on even items in 2-col mobile layout */
    &:nth-child(2n) { border-inline-end: none; }
    &:nth-child(1),
    &:nth-child(2) { border-block-start: none; }

    @media (width >= 768px) {
      border-block-start: none;

      &:nth-child(2n) { border-inline-end: 1px solid var(--hairline); }
      &:last-child { border-inline-end: none; }
    }

    &:hover {
      background: color-mix(in oklab, var(--aurum) 4%, transparent);
    }

    /* Transition delay from inline --i custom property */
    &:nth-child(1) { transition-delay: calc(var(--i, 0) * 0.08s); }
    &:nth-child(2) { transition-delay: 0.08s; }
    &:nth-child(3) { transition-delay: 0.16s; }
    &:nth-child(4) { transition-delay: 0.24s; }
  }

  /* Large ghost ordinal number */
  .values__ordinal {
    position: absolute;
    inset-block-start: -0.75rem;
    inset-inline-end: 0.75rem;
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 400;
    color: color-mix(in oklab, var(--aurum) 7%, transparent);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.05em;
  }

  .values__rule {
    width: 24px;
    height: 1px;
    background: var(--aurum);
    margin-block-end: 1.5rem;
  }

  .values__icon {
    width: 32px;
    height: 32px;
    color: var(--aurum);
    margin-block-end: 1.25rem;

    svg { width: 100%; height: 100%; }
  }

  .values__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-block-end: 0.75rem;
  }

  .values__desc {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--pearl-mid);
  }


  /* ══ SOBRE ══════════════════════════════════════════════════ */
  .about {
    padding-block: 7rem;
    background: var(--void);
  }

  .about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4.5rem;
    align-items: center;

    @media (width >= 900px) {
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
    }
  }

  /* Visual block */
  .about__visual {
    position: relative;
  }

  .about__image-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 1px;
    background: url('../assets/images/about-car.jpg') center top/cover no-repeat, var(--void-4);
    border: 1px solid var(--hairline);
    transition: transform 0.8s var(--ease);

    /* Subtle gradient to blend bottom of image with section */
    &::after {
      content: '';
      position: absolute;
      inset-block-end: 0;
      inset-inline: 0;
      height: 35%;
      background: linear-gradient(to top, var(--void) 0%, transparent 100%);
    }

    &:hover { transform: scale(1.02); }
  }

  .about__image-placeholder { display: none; }
  .about__car-icon { display: none; }

  /* Decorative corner frames */
  .about__frame {
    position: absolute;
    inset-block-end: -1.75rem;
    inset-inline-end: -1.75rem;
    width: 45%;
    height: 45%;
    border: 1px solid var(--aurum-line);
    border-radius: 1px;
    z-index: -1;
  }

  .about__frame-inner {
    position: absolute;
    inset-block-start: -0.75rem;
    inset-inline-start: -0.75rem;
    width: 24px;
    height: 24px;
    border-block-start: 1px solid var(--aurum);
    border-inline-start: 1px solid var(--aurum);
  }

  /* Text content */
  .about__text {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: var(--pearl-mid);
    margin-block-end: 1.25rem;
  }

  .about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-block: 2rem;
    border-block: 1px solid var(--hairline);
    margin-block: 2rem;
  }

  .about__stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .about__stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--aurum);
    line-height: 1;
  }

  .about__stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pearl-dim);
  }


  /* ══ CONTACTO ═══════════════════════════════════════════════ */
  .contact {
    background: var(--void-3);
  }

  /* Hero banner */
  .contact__hero {
    position: relative;
    height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: url('../assets/images/contact-car.jpg') center/cover no-repeat,
                linear-gradient(135deg, #080705 0%, #160f06 50%, #090909 100%);
  }

  .contact__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,14,11, 1) 0%, rgba(15,14,11, 0.35) 100%);
  }

  .contact__hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    width: 100%;
    margin-inline: auto;
    padding: 3rem 1.25rem;

    @media (width >= 640px)  { padding-inline: 2rem; }
    @media (width >= 1024px) { padding-inline: 3rem; }
  }

  .contact__hero-sub {
    font-size: 0.875rem;
    color: var(--pearl-mid);
    margin-block-start: 0.5rem;
  }

  /* Info + form grid */
  .contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-block: 4.5rem 7rem;

    @media (width >= 900px) {
      grid-template-columns: 300px 1fr;
      gap: 5rem;
      align-items: start;
    }
  }

  /* Info column */
  .contact__info--card {
    background: color-mix(in oklab, var(--void-4) 75%, transparent);
    padding: 2.5rem 2rem;
    border: 1px solid var(--hairline);
    border-radius: 2px;
  }

  .contact__info-inner {
    /* Structural wrapper */
  }

  .contact__info-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-block-end: 2.25rem;
  }

  .contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-block-end: 1.875rem;
  }

  .contact__info-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-block-start: 3px;
    color: var(--aurum);

    svg { width: 100%; height: 100%; }
  }

  .contact__info-label {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pearl-dim);
    margin-block-end: 0.3rem;
  }

  .contact__info-value {
    font-size: 0.875rem;
    color: var(--pearl);
    transition: color var(--t);

    a& { &:hover { color: var(--aurum); } }
  }

  .contact__divider {
    width: 100%;
    height: 1px;
    background: var(--hairline);
    margin-block: 2.25rem;
  }

  .contact__privacy {
    font-size: 0.76rem;
    line-height: 1.7;
    color: var(--pearl-dim);
  }


  /* ══ FORMULÁRIO ═════════════════════════════════════════════ */
  /* Container query for responsive form layout */
  .contact__form-wrap {
    container-type: inline-size;
    container-name: form;
  }

  .contact__form-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-block-end: 0.5rem;
  }

  .contact__form-sub {
    font-size: 0.875rem;
    color: var(--pearl-mid);
    margin-block-end: 2.75rem;
    line-height: 1.7;
  }

  .form__fieldset {
    margin-block-end: 2.75rem;
  }

  .form__legend {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--aurum);
    margin-block-end: 1.5rem;
    padding-block-end: 0.75rem;
    border-block-end: 1px solid var(--aurum-line);
    width: 100%;
  }

  .form__row {
    display: grid;
    gap: 1rem;
    margin-block-end: 1rem;
  }

  .form__row--2 { grid-template-columns: 1fr; }
  .form__row--3 { grid-template-columns: 1fr; }

  /* Container queries — more precise than viewport media queries */
  @container form (width >= 480px) {
    .form__row--2 { grid-template-columns: 1fr 1fr; }
    .form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
  }

  .form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-block-end: 1rem;
  }

  .form__label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pearl-mid);
  }

  .form__required {
    color: var(--aurum);
    margin-inline-start: 2px;
  }

  .form__input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--void-4);
    border: 1px solid var(--hairline);
    border-radius: 1px;
    color: var(--pearl);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    appearance: none;
    -webkit-appearance: none;

    &::placeholder { color: var(--pearl-dim); }

    &:focus {
      outline: none;
      border-color: var(--aurum);
      background: var(--void-5);
      box-shadow: 0 0 0 3px color-mix(in oklab, var(--aurum) 8%, transparent);
    }

    &:invalid:not(:placeholder-shown) {
      border-color: #c45050;
      box-shadow: 0 0 0 3px rgba(196, 80, 80, 0.06);
    }
  }

  /* Custom select arrow */
  .form__select {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23b8965a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 16px;
    padding-inline-end: 2.5rem;
    cursor: pointer;

    option {
      background: var(--void-4);
      color: var(--pearl);
    }
  }

  /* Auto-resize textarea using field-sizing (Chrome 123+) */
  .form__textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.65;

    @supports (field-sizing: content) {
      field-sizing: content;
      resize: none;
      min-height: 80px;
      max-height: 200px;
    }
  }

  /* Checkbox */
  .form__check {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-block-end: 2.25rem;
  }

  .form__checkbox {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-block-start: 3px;
    accent-color: var(--aurum);
    cursor: pointer;
  }

  .form__check-label {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--pearl-mid);
    cursor: pointer;
  }

  .form__check-link {
    color: var(--aurum);
    text-decoration: underline;
    transition: opacity var(--t);

    &:hover {
      opacity: 0.8;
    }
  }


  /* ══ RGPD MODAL ══════════════════════════════ */
  .rgpd-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);

    &.open {
      opacity: 1;
      pointer-events: all;
    }
  }

  .rgpd-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 4, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .rgpd-modal__content {
    position: relative;
    z-index: 1;
    background: var(--void-3);
    border: 1px solid var(--hairline);
    border-radius: 2px;
    padding: 3rem;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s var(--ease-spring);

    @media (width < 640px) {
      padding: 2rem;
      max-width: 100%;
    }
  }

  @keyframes modalSlideUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .rgpd-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 1px;
    color: var(--pearl-mid);
    cursor: pointer;
    transition: all var(--t);

    svg {
      width: 16px;
      height: 16px;
    }

    &:hover {
      color: var(--aurum);
      border-color: var(--aurum-line);
      background: color-mix(in oklab, var(--aurum) 8%, transparent);
    }
  }

  .rgpd-modal__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-block-end: 1.75rem;
    padding-block-end: 1rem;
    border-block-end: 1px solid var(--hairline);
  }

  .rgpd-modal__body {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--pearl-mid);

    h3 {
      font-size: 1rem;
      font-weight: 600;
      color: var(--pearl);
      margin-block: 1.25rem 0.75rem;
      letter-spacing: 0.04em;
    }

    ul {
      margin-block-end: 1.5rem;
      margin-inline-start: 1.5rem;

      li {
        margin-block-end: 0.6rem;
      }
    }

    p {
      margin-block-end: 1rem;
    }

    a {
      color: var(--aurum);
      text-decoration: underline;
      transition: opacity var(--t);

      &:hover {
        opacity: 0.8;
      }
    }
  }

  /* Submit button */
  .form__submit {
    padding: 1.1rem 2rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .form__submit-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform var(--t);

    .form__submit:hover & { transform: translateX(5px); }
  }

  /* Success message — uses @starting-style for entry animation */
  .form__success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3.5rem 2rem;
    border: 1px solid var(--aurum-line);
    border-radius: 1px;
    background: var(--aurum-dim);
    margin-block-start: 1.5rem;

    &.show {
      display: flex;
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);

      @starting-style {
        opacity: 0;
        transform: translateY(20px);
      }
    }

    svg {
      width: 44px;
      height: 44px;
      color: var(--aurum);
      margin-block-end: 1.25rem;
    }

    h4 {
      font-family: var(--font-display);
      font-size: 2rem;
      font-weight: 400;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--pearl);
      margin-block-end: 0.5rem;
    }

    p {
      font-family: var(--font-sans);
      font-size: 0.9rem;
      font-weight: 300;
      color: var(--pearl-mid);
    }
  }


  /* ══ RODAPÉ ═════════════════════════════════════════════════ */
  .footer {
    background: #030302;
    border-block-start: 1px solid var(--hairline);
    padding-block: 4.5rem 2.75rem;
  }

  .footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block-end: 3rem;
    border-block-end: 1px solid var(--hairline);
    margin-block-end: 2rem;

    @media (width >= 768px) {
      grid-template-columns: 1fr auto auto;
      align-items: start;
    }
  }

  .footer__logo { margin-block-end: 0.875rem; }

  .footer__tagline {
    font-size: 0.78rem;
    color: var(--pearl-dim);
    line-height: 1.7;
    max-width: 260px;
  }

  .footer__nav,
  .footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }

  .footer__link {
    font-size: 0.78rem;
    color: var(--pearl-mid);
    transition: color var(--t);
    letter-spacing: 0.04em;

    &:hover { color: var(--aurum); }
  }

  .footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .footer__copy {
    font-size: 0.68rem;
    color: var(--pearl-dim);
    letter-spacing: 0.06em;
  }

  .footer__attr {
    font-size: inherit;
    color: var(--pearl-dim);
    opacity: 0.6;
    transition: opacity var(--t);

    &:hover { opacity: 1; color: var(--aurum); }
  }

}


/* ════════════════════════════════════════════════════════════ */
@layer utilities {

  /* ── Reveal on scroll ─────────────────────────────────────── */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);

    &.visible {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Staggered delay via --i custom prop set in HTML style="" */
  .values__item.visible {
    transition-delay: calc(var(--i, 0) * 0.1s);
  }

}


/* ════════════════════════════════════════════════════════════ */
@layer animations {

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  @keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    50%       { opacity: 0.25; transform: scaleY(0.55); transform-origin: top; }
  }

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

  @keyframes progressFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }

  @keyframes blobDrift1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-8%, 5%) scale(1.08); }
  }

  @keyframes blobDrift2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(6%, -4%) scale(0.95); }
  }

  @keyframes lineFlicker {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 0.15; }
  }

  /* Cinematic slow zoom/pan on hero image */
  @keyframes heroKenBurns {
    0%   { transform: scale(1.08) translate(0%, 0%); }
    33%  { transform: scale(1.04) translate(-1.5%, 0.8%); }
    66%  { transform: scale(1.06) translate(1%, -0.5%); }
    100% { transform: scale(1.0)  translate(-0.5%, 1%); }
  }

}


/* ─── RESPONSIVO — ajustes específicos ──────────────────────── */
@media (width < 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .values__item { padding: 2rem 1.25rem; }
  .values__ordinal { font-size: 4rem; }
}

@media (width >= 640px) and (width < 899px) {
  .about__grid { max-width: 560px; margin-inline: auto; }
}
