  :root {

    --gold: #2DD4BF;
    --gold-light: #5EEAD4;
    --gold-dim: #14B8A6;

    --black: #0B1220;
    --dark: #0F1A2B;
    --dark2: #111F33;
    --dark3: #16263E;

    --white: #E6EDF3;
    --white-dim: #9AA4B2;

    --ink: #0B1220;
    --border: rgba(45, 212, 191, 0.18);
    --page-pad: clamp(1.25rem, 4vw, 4rem);
    --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --font-serif: 'Cormorant Garamond', serif;
    --font-display: 'Playfair Display', serif;
  }

  *, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
  img { max-width: 100%; height: auto; }

  html { scroll-behavior: smooth; }

  html, body { width: 100%; max-width: 100%; }
  html { overflow-x: clip; }

  body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-mono);
    overflow-x: hidden;
  }
  body.is-loading { overflow: hidden; }

  #loader {
    position: fixed; inset: 0;
    background: var(--black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.9s cubic-bezier(.2,.9,.2,1), filter 0.9s cubic-bezier(.2,.9,.2,1);
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  #loader.hidden { opacity: 0; visibility: hidden; }
  #loader.leaving {
    opacity: 0;
    transform: translateY(-10px) scale(1.015);
    filter: blur(10px);
    pointer-events: none;
  }
  .loader-logo {
    animation: pulse 1.5s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    line-height: 0;
  }

  .brand-signature {
    width: min(92vw, 1100px);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: none;

    mix-blend-mode: screen;
  }
  .loader-bar {
    width: 200px; height: 1px;
    background: var(--dark3);
    position: relative;
    overflow: hidden;
  }
  .loader-bar::after {
    content: '';
    position: absolute;
    left: -100%; top: 0;
    width: 100%; height: 100%;
    background: var(--gold);
    animation: loadBar 1.8s ease forwards;
  }
  @keyframes loadBar { to { left: 100%; } }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

  #app {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
    transition: opacity 0.9s cubic-bezier(.2,.9,.2,1), transform 0.9s cubic-bezier(.2,.9,.2,1), filter 0.9s cubic-bezier(.2,.9,.2,1);
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  body.is-ready #app {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
  }

  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.5rem var(--page-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
  }
  nav.scrolled {
    background: rgba(11, 18, 32, 0.75);
    backdrop-filter: blur(20px);
    border-color: var(--border);
  }
  .nav-brand { display: flex; align-items: center; flex-shrink: 0; min-width: 0; gap: 0; }
  .nav-brand picture {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    max-width: 100%;
  }

  .nav-logo {
    display: block;
    width: auto;
    max-width: min(260px, 42vw);
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: none;
    opacity: 1;
  }
  .nav-logo-full { height: 42px; }
  .nav-logo-short { height: 34px; display: none; }
  .nav-links {
    display: flex; gap: 2.5rem;
    list-style: none;
  }
  .nav-links a {
    color: var(--white-dim);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  .nav-links a:hover { color: var(--gold); }
  .nav-links a:hover::after { transform: scaleX(1); }

  .nav-toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    color: var(--gold);
    transition: border-color 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 102;
  }
  .nav-toggle:hover {
    border-color: var(--gold-dim);
    background: rgba(212, 175, 55, 0.06);
  }
  .nav-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }
  .nav-toggle-bars {
    width: 22px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
  }
  .nav-toggle-line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--gold);
    border-radius: 1px;
    transition: transform 0.35s ease, opacity 0.25s ease;
    transform-origin: center;
  }
  #nav.nav-open .nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  #nav.nav-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }
  #nav.nav-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-drawer {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }

  .nav-cta {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border: 1px solid var(--gold);
    padding: 0.6rem 1.4rem;
    transition: all 0.3s ease;
  }
  .nav-cta:hover { background: var(--gold); color: var(--ink); }

  #hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 var(--page-pad);
  }

  .hero-bg-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
    animation: lineFade 3s ease infinite;
  }
  .hero-bg-line:nth-child(1) { left: 20%; animation-delay: 0s; }
  .hero-bg-line:nth-child(2) { left: 50%; animation-delay: 1s; }
  .hero-bg-line:nth-child(3) { left: 80%; animation-delay: 2s; }
  @keyframes lineFade { 0%,100%{opacity:0.2} 50%{opacity:0.7} }

  .hero-number {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
  }

  .hero-signature-wrap {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1.2s ease 0.8s forwards;
    overflow: hidden;
  }
  .hero-signature {
    width: clamp(300px, 55vw, 700px);
    filter: none;
    display: block;
    mix-blend-mode: screen;
  }
  .hero-signature-glow {
    position: absolute; inset: -20%;
    background: radial-gradient(ellipse at center, rgba(15, 118, 110, 0.06) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white-dim);
    letter-spacing: 0.1em;
    margin: 0 0 1rem;
    line-height: 1.45;
    opacity: 0;
    animation: fadeUp 1s ease 1.1s forwards;
  }

  .hero-divider {
    width: 60px; height: 1px;
    background: var(--gold);
    margin: 2rem auto;
    opacity: 0;
    animation: fadeUp 1s ease 1.3s forwards;
  }

  .hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--white-dim);
    text-align: center;
    max-width: 550px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 1s ease 1.5s forwards;
  }

  .hero-actions {
    display: flex; gap: 1.5rem; margin-top: 3.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 1.8s forwards;
    flex-wrap: wrap;
    justify-content: center;
  }
  .btn-primary {
    background: var(--gold);
    color: var(--ink);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  .btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--gold-light);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .btn-primary:hover::before { transform: translateX(0); }
  .btn-primary:hover { color: var(--ink); }
  .btn-primary span { position: relative; z-index: 1; }
  .btn-secondary {
    color: var(--white-dim);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
  }
  .btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

  .hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
    opacity: 0;
    animation: fadeUp 1s ease 2.2s forwards;
    width: fit-content;
    text-align: center;
  }
  .hero-scroll span {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dim);

    margin-right: -0.3em;
  }
  .scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease infinite;
  }
  @keyframes scrollPulse { 0%,100%{opacity:1; transform:scaleY(1)} 50%{opacity:0.3; transform:scaleY(0.5)} }

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

  #servicos {
    padding: 8rem var(--page-pad);
    position: relative;
  }
  .section-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 1rem;
  }
  .section-label::before {
    content: '';
    width: 0; height: 1px;
    background: var(--gold);
    display: block;
    transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
  }
  .section-label.visible::before {
    width: 30px;
  }
  .section-title {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }
  .section-title em { font-style: italic; color: var(--gold); }

  .section-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--white-dim);
    line-height: 1.9;
    max-width: 720px;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 5rem;
  }
  .service-card {
    padding: 3rem 2.5rem;
    background: var(--dark);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
  }
  .service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }
  .service-card:hover {
    background: var(--dark2);
    border-color: rgba(45, 212, 191, 0.42);
  }
  .service-card:hover::before { transform: scaleX(1); }
  .service-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--gold-dim);
    margin-bottom: 2rem;
  }
  .service-icon {
    width: 48px; height: 48px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: var(--gold);
  }
  .service-name {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
  }
  .service-desc {
    font-size: 1rem;
    font-weight: 300;
    color: var(--white-dim);
    line-height: 1.8;
  }
  .service-tag {
    display: inline-block;
    margin-top: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
  }

  #sobre {
    padding: 8rem var(--page-pad);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
  }
  .about-visual {
    position: relative;

    overflow: clip;
  }
  .about-frame {
    aspect-ratio: 3/4;
    background: var(--dark2);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  }
  .about-visual.visible .about-frame {
    clip-path: inset(0 0 0% 0);
  }
  .about-frame-inner {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--dark3) 0%, var(--dark) 100%);
    display: block;
  }
  .about-photo-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    line-height: 0;
  }
  .loader-logo picture,
  .hero-signature-wrap picture {
    display: block;
    line-height: 0;
  }
  .about-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    filter: saturate(0.95) contrast(1.06);
    opacity: 0.92;
  }
  .about-frame-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
    pointer-events: none;
  }
  .portfolio-grid-lines { position: absolute; inset: 0; z-index: 2; }
  .about-signature-wrap {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(78%, 420px);
    z-index: 3;
    pointer-events: none;
    display: block;
    line-height: 0;
  }
  .about-frame-signature {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.62;
    mix-blend-mode: screen;

    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
  }
  .about-frame-border {
    position: absolute;
    top: 20px; left: 20px; right: 0; bottom: 0;
    transform: translate(20px, 20px);
    border: 1px solid var(--border);
    z-index: -1;
  }
  .about-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    margin-top: 2rem;
    border: 1px solid var(--border);
  }
  .about-stats--single {
    grid-template-columns: 1fr;
  }
  .stat-item {
    padding: 1.75rem 1.5rem;
    background: var(--dark);
    text-align: center;
  }
  .stat-num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--gold);
    display: block;
    line-height: 1;
  }
  .stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-dim);
    margin-top: 0.5rem;
    display: block;
  }
  .about-text p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--white-dim);
    line-height: 1.9;
    margin-bottom: 1.5rem;
  }
  .about-text p strong {
    color: var(--white);
    font-weight: 400;
  }
  .about-text p a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
  }
  .about-text p a:hover {
    color: var(--gold);
  }
  .about-linkedin {
    margin-top: 1rem;
    margin-bottom: 0 !important;
  }
  .about-linkedin a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.35);
    transition: color 0.25s ease, border-color 0.25s ease;
  }
  .about-linkedin a:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
  }
  .about-locale {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    font-size: 0.95rem;
    color: var(--white-dim);
    font-weight: 300;
    line-height: 1.6;
  }
  .about-last-updated {
    margin-top: 0.85rem !important;
    margin-bottom: 0 !important;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dim);
  }
  .about-last-updated time { color: inherit; }

  .tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.75rem;
  }
  .tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(45, 212, 191, 0.22);
    background: rgba(11, 18, 32, 0.28);
    color: rgba(230, 237, 243, 0.92);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  /* ── SOBRE — botão "ler mais" (mobile) ── */
  .about-read-more-btn { display: none; }
  .about-more {
    /* desktop: always visible */
  }

  @media (max-width: 768px) {
    .about-more {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.7s cubic-bezier(0.2, 0.9, 0.25, 1);
    }
    .about-read-more-btn {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--gold);
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0.65rem 1.1rem;
      cursor: pointer;
      margin: 1.25rem 0 0;
      transition: background 0.25s, border-color 0.25s, color 0.25s;
    }
    .about-read-more-btn:hover,
    .about-read-more-btn:focus-visible {
      background: rgba(45, 212, 191, 0.08);
      border-color: var(--gold);
      outline: none;
    }
    .abrm-arrow {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1);
      flex-shrink: 0;
    }
    .about-read-more-btn[aria-expanded="true"] .abrm-arrow {
      transform: rotate(180deg);
    }
  }

  /* ── COMO FUNCIONA — grid editorial com ilustrações SVG ── */
  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
  }

  #como-funciona {
    padding: 8rem var(--page-pad);
    background: var(--dark);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }
  #como-funciona::after {
    content: 'PROCESSO';
    position: absolute;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(5rem, 14vw, 13rem);
    letter-spacing: 0.22em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(45, 212, 191, 0.032);
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    user-select: none;
  }

  .cf-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
  }
  .cf-header .section-label { justify-content: center; }
  .cf-header .section-title {
    text-align: center;
    margin-inline: auto;
    max-width: 640px;
  }
  .cf-subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--white-dim);
    margin-top: 1.5rem;
    letter-spacing: 0.03em;
    line-height: 1.7;
  }

  .cf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
  }

  .cf-card {
    border-right: 1px solid var(--border);
    background: var(--dark2);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
  }
  .cf-card:last-child { border-right: 0; }
  .cf-card:hover { background: var(--dark3); }
  .cf-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
  }
  .cf-card:hover::before { transform: scaleX(1); }

  .cf-card-art {
    position: relative;
    padding: 2.25rem 2rem 1.75rem;
    background: var(--dark3);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cf-card-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(45, 212, 191, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(45, 212, 191, 0.045) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
  }
  .cf-art-svg {
    width: min(110px, 75%);
    height: auto;
    display: block;
    color: var(--gold-dim);
    position: relative;
    z-index: 1;
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .cf-card:hover .cf-art-svg {
    color: var(--gold);
    transform: scale(1.06);
  }
  .cf-card-num {
    position: absolute;
    bottom: -0.18em;
    right: -0.04em;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(3.2rem, 5.5vw, 5rem);
    color: transparent;
    -webkit-text-stroke: 1px rgba(45, 212, 191, 0.11);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    transition: -webkit-text-stroke-color 0.45s ease;
  }
  .cf-card:hover .cf-card-num {
    -webkit-text-stroke-color: rgba(45, 212, 191, 0.26);
  }

  .cf-card-body {
    padding: 1.75rem 1.75rem 2rem;
  }
  .cf-card-label {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.65rem;
  }
  .cf-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    font-weight: 700;
    font-style: normal;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 0.9rem;
  }
  .cf-card-desc {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--white-dim);
    line-height: 1.85;
    margin-bottom: 1.5rem;
  }
  .cf-card-stat {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(45, 212, 191, 0.1);
    flex-wrap: wrap;
  }
  .cf-stat-value {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
  }
  .cf-stat-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-dim);
    line-height: 1.5;
  }

  #faq {
    padding: 8rem var(--page-pad);
    border-top: 1px solid var(--border);
    background: var(--dark);
  }
  #faq .section-label { justify-content: center; }
  #faq .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  #faq .section-subtitle {
    text-align: center;
    margin: 0 auto;
  }
  .faq-list {
    max-width: 920px;
    margin: 3.5rem auto 0;
    border: 1px solid var(--border);
    background: rgba(11, 18, 32, 0.35);
  }
  .faq-item + .faq-item { border-top: 1px solid var(--border); }
  .faq-trigger {
    width: 100%;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
  }
  .faq-trigger:focus-visible {
    outline: 2px solid rgba(94, 234, 212, 0.9);
    outline-offset: -2px;
  }
  .faq-question {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: rgba(230, 237, 243, 0.95);
    line-height: 1.35;
  }
  .faq-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.22);
    display: grid;
    place-items: center;
    color: var(--gold);
    flex: 0 0 auto;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  }
  .faq-trigger[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: rgba(45, 212, 191, 0.08);
    border-color: rgba(45, 212, 191, 0.42);
  }
  .faq-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(.2,.9,.2,1);
  }
  .faq-panel-inner {
    padding: 0 1.25rem 1.35rem;
    color: var(--white-dim);
    font-size: 1rem;
    line-height: 1.85;
    font-weight: 300;
  }

  .whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
  }
  .whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  }
  .whatsapp-float:focus-visible {
    outline: 2px solid rgba(94, 234, 212, 0.9);
    outline-offset: 4px;
  }
  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }

  /* ── FOTOGRAFIA ── */
  #fotografia {
    padding: 8rem var(--page-pad);
    background: var(--dark);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }
  #fotografia::after {
    content: 'FOTOGRAFIA';
    position: absolute;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(4rem, 11vw, 10rem);
    letter-spacing: 0.22em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(45, 212, 191, 0.028);
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    user-select: none;
  }

  .foto-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
  }
  .foto-header .section-label { justify-content: center; }
  .foto-header .section-title {
    text-align: center;
    margin-inline: auto;
    max-width: 640px;
  }
  .foto-subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--white-dim);
    margin-top: 1.5rem;
    line-height: 1.85;
    max-width: 600px;
    margin-inline: auto;
  }

  .foto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
  }

  .foto-card {
    border-right: 1px solid var(--border);
    background: var(--dark2);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
  }
  .foto-card:last-child { border-right: 0; }
  .foto-card:hover { background: var(--dark3); }
  .foto-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
  }
  .foto-card:hover::before { transform: scaleX(1); }

  .foto-card-art {
    position: relative;
    padding: 2.25rem 2rem 1.75rem;
    background: var(--dark3);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .foto-art-svg {
    width: min(110px, 75%);
    height: auto;
    display: block;
    color: var(--gold-dim);
    position: relative;
    z-index: 1;
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .foto-card:hover .foto-art-svg {
    color: var(--gold);
    transform: scale(1.06);
  }

  .foto-card-body {
    padding: 1.75rem 1.75rem 2rem;
  }

  .foto-cta {
    margin-top: 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }
  .foto-cta-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--white-dim);
    line-height: 1.85;
    max-width: 460px;
  }

  @media (max-width: 768px) {
    #fotografia { padding: 5rem 2rem; }
    .foto-header { margin-bottom: 3rem; }
    .foto-grid { grid-template-columns: 1fr; }
    .foto-card { border-right: 0; border-bottom: 1px solid var(--border); }
    .foto-card:last-child { border-bottom: 0; }
  }

  #portfolio {
    padding: 8rem var(--page-pad);
    border-top: 1px solid var(--border);
  }
  #portfolio[hidden] { display: none !important; }
  #portfolio .section-label {
    justify-content: center;
  }
  #portfolio .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  #portfolio .section-subtitle {
    text-align: center;
    margin: 0 auto;
  }
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-top: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
  .project-card {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
  }
  .project-card:hover {
    border-color: rgba(45, 212, 191, 0.42);
    transform: translateY(-4px);
  }
  .project-mockup {
    display: block;
    aspect-ratio: 1200 / 575;
    background: var(--dark2);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    line-height: 0;
  }
  .project-mockup img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
                transform 0.5s ease;
  }
  .project-card.visible .project-mockup img {
    clip-path: inset(0 0% 0 0);
  }
  .project-card:hover .project-mockup img {
    transform: scale(1.03);
  }
  .project-body {
    padding: 1.75rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .project-tag {
    display: inline-flex;
    width: fit-content;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    background: rgba(11, 18, 32, 0.25);
  }
  .project-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--white);
    margin: 0;
  }
  .project-desc {
    color: var(--white-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
  }
  .project-link {
    margin-top: 0.25rem;
    width: fit-content;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.28);
    padding-bottom: 0.35rem;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }
  .project-link:hover {
    color: var(--gold);
    border-color: rgba(45, 212, 191, 0.55);
    transform: translateX(3px);
  }

  #contato {
    padding: 10rem var(--page-pad);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  #contato::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(15, 118, 110, 0.05) 0%, transparent 60%);
  }
  .cta-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
  }
  .cta-headline {
    font-family: var(--font-mono);

    font-size: clamp(1.65rem, 4vw + 1.25rem, 6rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 2rem;
    max-width: 100%;
    margin-inline: auto;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .cta-headline em {
    font-style: italic;
    color: var(--gold);
    overflow-wrap: break-word;
  }
  .cta-sub {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--white-dim);
    margin-bottom: 4rem;
    max-width: 500px;
    margin-left: auto; margin-right: auto;
    line-height: 1.8;
  }

  .formulario-contato {
    width: min(720px, 100%);
    margin: 0 auto 3.5rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: linear-gradient(160deg, rgba(15, 26, 43, 0.65) 0%, rgba(17, 31, 51, 0.35) 100%);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
  }
  .campo-grupo { margin-bottom: 1rem; }
  .campo-grupo input,
  .campo-grupo select,
  .campo-grupo textarea {
    width: 100%;
    background: rgba(11, 18, 32, 0.55);
    border: 1px solid rgba(45, 212, 191, 0.22);
    color: var(--white);
    padding: 0.95rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
  }
  .campo-grupo textarea { resize: vertical; min-height: 140px; }
  .campo-grupo input::placeholder,
  .campo-grupo textarea::placeholder {
    color: rgba(154, 164, 178, 0.85);
  }
  .campo-grupo select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, rgba(45, 212, 191, 0.8) 50%),
      linear-gradient(135deg, rgba(45, 212, 191, 0.8) 50%, transparent 50%),
      linear-gradient(to right, transparent, transparent);
    background-position:
      calc(100% - 18px) calc(1.15rem),
      calc(100% - 12px) calc(1.15rem),
      0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    padding-right: 2.6rem;
  }
  .campo-grupo input:focus-visible,
  .campo-grupo select:focus-visible,
  .campo-grupo textarea:focus-visible {
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
    background: rgba(11, 18, 32, 0.65);
  }
  .formulario-contato button.btn-primary {
    width: 100%;
    border: 0;
    cursor: pointer;
    text-align: center;
    padding: 1.05rem 1.5rem;
  }
  .cta-divider {
    text-align: center;
    margin: 3rem auto 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dim);
  }
  .cta-contact-options {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    margin-top: 2rem;
  }
  .contact-option {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    text-decoration: none; color: inherit;
    transition: all 0.3s ease;
  }
  .contact-option:hover { color: var(--gold); }
  .contact-option-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dim);
  }
  .contact-option-value {
    font-size: 1rem;
    font-weight: 300;
    color: var(--white-dim);
    transition: color 0.3s;
  }
  .contact-option:hover .contact-option-value { color: var(--gold); }

  .portfolio-grid-lines {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(15, 118, 110, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 118, 110, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  footer {
    padding: 3rem var(--page-pad);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  footer picture {
    display: block;
    flex-shrink: 0;
    line-height: 0;
    max-width: min(260px, 42vw);
  }
  footer picture img.footer-sig {
    max-width: 100%;
  }
  .footer-text {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
  .footer-locale {
    font-family: var(--font-serif), Georgia, serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--white-dim);
    letter-spacing: 0.03em;
    max-width: 320px;
    margin: 0;
    line-height: 1.55;
  }
  .footer-sig {
    height: 26px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
    filter: none;
    opacity: 0.92;

    mix-blend-mode: normal;
  }
  .footer-copy {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--gold-dim);
  }
  .footer-links { display: flex; gap: 2rem; }
  .footer-links a {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-dim);
    text-decoration: none;
    transition: color 0.3s;
  }
  .footer-links a:hover { color: var(--gold); }

  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  @media (max-width: 768px) {
    .nav-brand {
      position: relative;
      z-index: 102;
    }
    .nav-toggle {
      display: inline-flex;
    }
    .nav-drawer {
      position: fixed;
      inset: 0;
      z-index: 101;
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      gap: 0;
      padding: calc(5rem + env(safe-area-inset-top, 0px)) 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
      background: rgba(11, 18, 32, 0.97);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
      border-left: 1px solid var(--border);
      box-shadow: -24px 0 48px rgba(0, 0, 0, 0.35);
      transform: translateX(100%);
      visibility: hidden;
      transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.38s;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }
    #nav.nav-open .nav-drawer {
      transform: translateX(0);
      visibility: visible;
    }
    body.nav-menu-open {
      overflow: hidden;
    }
    .nav-links {
      flex-direction: column;
      gap: 0;
      width: 100%;
    }
    .nav-links li {
      border-bottom: 1px solid var(--border);
    }
    .nav-links a {
      display: block;
      padding: 1.15rem 0;
      font-size: 0.72rem;
    }
    .nav-links a::after {
      display: none;
    }
    .nav-cta {
      margin-top: auto;
      text-align: center;
      padding: 1rem 1.5rem;
      font-size: 0.62rem;
      align-self: stretch;
    }
    nav { padding: 1.5rem 2rem; }
    #hero, #servicos, #contato, footer { padding-left: 2rem; padding-right: 2rem; }
    #sobre { grid-template-columns: 1fr; padding: 4rem 2rem; }
    .nav-logo-full { display: none; }
    .nav-logo-short { display: block; height: 32px; }

    .section-label {
      justify-content: center;
      text-align: center;
    }
    .section-label::before { display: none; }
    .section-title { text-align: center; }

    .hero-actions {
      width: 100%;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
      width: min(340px, 100%);
      text-align: center;
    }

    #como-funciona { padding: 5rem 2rem; }
    .cf-header { margin-bottom: 3rem; }
    .cf-grid { grid-template-columns: repeat(2, 1fr); }
    .cf-card:nth-child(2) { border-right: 0; }
    .cf-card:nth-child(1),
    .cf-card:nth-child(2) { border-bottom: 1px solid var(--border); }
    .cf-card-title { font-size: 1.25rem; }

    #portfolio { padding-top: 4rem; padding-bottom: 4rem; }
    #faq { padding-top: 4rem; padding-bottom: 4rem; }
    .faq-trigger { padding: 1.05rem 1.05rem; }
    .faq-panel-inner { padding-left: 1.05rem; padding-right: 1.05rem; }

    footer {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    .footer-sig { height: 30px; }
  }

/* ============================================================
   MOTION SYSTEM — animações narrativas
   ============================================================ */

/* Perspectiva 3D nos pais de palavras animadas */
[data-split-words] {
  perspective: 900px;
}

/* Scroll progress — fina barra no topo */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--gold-dim), var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.85;
  will-change: transform;
}

/* Reveal — estado inicial dos elementos com .reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.9, 0.25, 1),
              transform 0.85s cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform, opacity;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Word-by-word reveal — para títulos */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.65em) rotateX(-35deg);
  transform-origin: 50% 100%;
  transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.25, 1),
              transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1);
  transition-delay: calc(var(--word-i, 0) * 55ms);
  will-change: transform, opacity;
}
.word.visible { opacity: 1; transform: translateY(0) rotateX(0); }

/* Ícone dos serviços — pop com leve overshoot ao revelar */
.service-icon {
  transform: scale(0.7) rotate(-8deg);
  opacity: 0.35;
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
              opacity 0.6s ease 0.15s;
}
.service-card.visible .service-icon {
  transform: scale(1) rotate(0);
  opacity: 0.95;
}

/* Glow seguindo o mouse nos cards */
.has-glow { position: relative; isolation: isolate; overflow: hidden; }
.has-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(45, 212, 191, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  mix-blend-mode: screen;
}
.has-glow:hover::after { opacity: 1; }

/* Ken Burns — foto pessoal respirando suavemente */
.about-photo {
  animation: kenBurns 22s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.10) translate(-1.2%, -1.5%); }
}

/* Brilho sutil na assinatura ao revelar a seção sobre */
.about-frame-signature {
  transition: opacity 1.2s ease 0.4s, filter 1.2s ease 0.4s;
}
.about-visual.visible .about-frame-signature {
  filter: drop-shadow(0 12px 28px rgba(45, 212, 191, 0.18));
}

/* Project card — sobe sutilmente no hover (combina com glow) */
.project-card { transform: translateZ(0); }
.project-card:hover .project-link {
  color: var(--gold);
  border-color: var(--gold);
}

/* Botão primário — pulse muito sutil quando entra na vista */
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
  50%      { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.08); }
}
.btn-primary { will-change: transform; }
.hero-actions.reveal.visible .btn-primary {
  animation: subtlePulse 2.4s ease 0.8s infinite;
}

/* Quando a seção #portfolio entra, o título pulsa um instante */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scene counter — indicador de capítulo flutuante (canto inferior direito) */
.scene-counter {
  position: fixed;
  right: 1.75rem;
  bottom: 6.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  z-index: 500;
  pointer-events: none;
  mix-blend-mode: normal;
}
.scene-counter-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  transition: opacity 0.18s ease, transform 0.18s ease;
  line-height: 1;
}
.scene-counter.changing .scene-counter-num {
  opacity: 0;
  transform: translateY(-5px);
}
.scene-counter-sep {
  color: rgba(45, 212, 191, 0.25);
  font-size: 0.65rem;
  margin: 0 0.05em;
}
.scene-counter-total {
  color: rgba(45, 212, 191, 0.28);
  font-size: 0.65rem;
}


/* Contact section — anéis pulsantes */
@keyframes ringExpand {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.18; }
  100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}
.contact-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.16);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  pointer-events: none;
  animation: ringExpand 5s ease-out infinite;
}
.contact-ring:nth-child(2) { animation-delay: 1.65s; }
.contact-ring:nth-child(3) { animation-delay: 3.3s; }

/* Acessibilidade — respeita prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .word, .service-icon { opacity: 1 !important; transform: none !important; transition: none !important; }
  .about-photo { animation: none !important; transform: none !important; }
  .about-frame { clip-path: none !important; transition: none !important; }
  .project-mockup img { clip-path: none !important; transition: transform 0.5s ease !important; }
  .cf-card, .cf-art-svg, .cf-card-num, .cf-card::before { transition: none !important; }
  .hero-actions.reveal.visible .btn-primary { animation: none !important; }
  .contact-ring { animation: none !important; display: none !important; }
  .scene-counter { display: none !important; }
  .scroll-progress { display: none; }
  * { scroll-behavior: auto !important; }
}

/* Mobile — oculta elementos que poluem em tela pequena */
@media (max-width: 768px) {
  .scene-counter { display: none; }
}

/* Cards em coluna única abaixo de 560px */
@media (max-width: 560px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-card { border-right: 0; border-bottom: 1px solid var(--border); }
  .cf-card:last-child { border-bottom: 0; }
  .cf-card:nth-child(2) { border-right: 0; }
  .cf-card:nth-child(1),
  .cf-card:nth-child(2) { border-bottom: 1px solid var(--border); }
}
