/* ==========================================================================
   ALLNEW SOLUÇÕES E CONSTRUÇÕES — DESIGN SYSTEM & FRAME ANIMATION STYLES
   Colors: Deep Emerald (#07190d), Neon Green (#46d34f, #72f26f), Glassmorphism
   ========================================================================== */
:root {
  --ink: #f5fff7;
  --muted: rgba(236, 255, 240, 0.75);
  --muted-dim: rgba(236, 255, 240, 0.45);

  --green: #46d34f;
  --green-bright: #72f26f;
  --green-deep: #07190d;
  --green-darker: #041008;

  --glass: rgba(8, 31, 15, 0.65);
  --glass-line: rgba(116, 255, 124, 0.22);
  --glass-glow: rgba(70, 211, 79, 0.15);

  --grad-primary: linear-gradient(135deg, #72f26f 0%, #46d34f 50%, #208e27 100%);
  --grad-surface: linear-gradient(180deg, rgba(8, 31, 15, 0.8) 0%, rgba(4, 16, 8, 0.95) 100%);

  --font-display: "Outfit", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 30px rgba(70, 211, 79, 0.25);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--green-deep);
  font-family: var(--font-body);
  color: var(--ink);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #72f26f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-green {
  color: var(--green-bright);
}

/* Glass Utility */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--green-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  text-align: center;
  max-width: 380px;
  width: 90%;
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  background: rgba(8, 31, 15, 0.85);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(70, 211, 79, 0.15);
}

.loader-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(114, 242, 111, 0.4), 0 0 0 2px var(--green);
  animation: logoPulse 2.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(114, 242, 111, 0.3), 0 0 0 2px var(--green); }
  50% { transform: scale(1.06); box-shadow: 0 0 35px rgba(114, 242, 111, 0.7), 0 0 0 3px var(--green-bright); }
}

.loader-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.loader-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 28px;
}

.loader-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.15s ease-out;
  box-shadow: 0 0 16px var(--green-bright);
}

.loader-status {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   HEADER / NAVBAR (GLASS FLOATING HEADER)
   ========================================================================== */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 50%;
  width: min(1180px, calc(100% - 2rem));
  min-height: 66px;
  transform: translateX(-50%);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .65rem .75rem .65rem 1rem;
  transition: opacity .4s ease, transform .4s ease, background .3s ease;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  width: fit-content;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(108, 255, 116, .25), 0 6px 20px rgba(0, 0, 0, .34), 0 0 22px rgba(70, 211, 79, .2);
}

.brand-name {
  font: 800 1.05rem/1 var(--font-display);
  letter-spacing: .08em;
  color: var(--ink);
}

.brand-name small {
  display: block;
  margin-top: .28rem;
  color: rgba(245, 255, 247, .82);
  font: 700 .48rem/1 var(--font-body);
  letter-spacing: .13em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}

.header-status {
  color: rgba(245, 255, 247, .86);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .55rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 14px var(--green);
  animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  50% { opacity: .45; transform: scale(.85); }
}

.header-cta {
  justify-self: end;
  text-decoration: none;
  padding: .75rem 1.25rem;
  border-radius: 12px;
  background: var(--green);
  color: #061109;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  box-shadow: 0 4px 20px rgba(70, 211, 79, 0.3);
}

.header-cta:hover {
  transform: translateY(-2px);
  background: var(--green-bright);
  box-shadow: 0 8px 30px rgba(114, 242, 111, 0.5);
}

/* ==========================================================================
   SCROLLEABLE STAGE (STICKY CANVAS + CHAPTER SCENERY)
   ========================================================================== */
.scroll-story {
  height: 900vh;
  background: var(--green-darker);
}

.story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-container {
  position: absolute;
  z-index: -4;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.frame-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.video-shade {
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(90deg, rgba(2, 10, 5, .82) 0%, rgba(2, 10, 5, .2) 45%, rgba(2, 10, 5, .25) 62%, rgba(2, 10, 5, .72) 100%),
    linear-gradient(180deg, rgba(3, 13, 6, .45) 0%, transparent 28%, transparent 70%, rgba(3, 13, 6, .85) 100%);
}

.technical-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: 
    linear-gradient(rgba(101, 255, 111, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 255, 111, .18) 1px, transparent 1px);
  background-size: 8vw 8vw;
  mask-image: linear-gradient(to bottom, black, transparent 36%, transparent 70%, black);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 36%, transparent 70%, black);
}

/* Story Chapters */
.story-chapters {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 2rem));
  height: 100%;
  margin: auto;
  pointer-events: none;
}

.chapter {
  position: absolute;
  top: 50%;
  left: 0;
  width: min(520px, 44vw);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, calc(-50% + 16px), 0);
  transition: opacity .22s ease, transform .36s var(--ease), visibility 0s linear .22s;
  will-change: opacity, transform;
  pointer-events: none;
}

.chapter.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
  transition: opacity .24s ease, transform .4s var(--ease), visibility 0s;
  pointer-events: auto;
}

.chapter--right {
  left: auto;
  right: 0;
  text-align: right;
}

.chapter--right .eyebrow {
  justify-content: flex-end;
}

.chapter--result {
  left: 50%;
  width: min(680px, 68vw);
  text-align: center;
  transform: translate3d(-50%, calc(-50% + 16px), 0);
}

.chapter--result.is-active {
  transform: translate3d(-50%, -50%, 0);
}

.chapter--result .eyebrow {
  justify-content: center;
}

.chapter--hero {
  top: 42%;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.2rem;
  color: rgba(248, 255, 249, .92);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}

.eyebrow span {
  color: var(--green-bright);
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--green-bright);
  box-shadow: 0 0 10px rgba(114, 242, 111, .5);
}

.chapter--right .eyebrow::before {
  order: 2;
}

.chapter h1, .chapter h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .8), 0 10px 40px rgba(0, 0, 0, .8);
}

.chapter h1 {
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: .93;
}

.chapter h2 {
  font-size: clamp(2.15rem, 3.9vw, 4rem);
  line-height: .97;
}

.chapter h1 em, .chapter h2 em {
  color: var(--green-bright);
  font-style: normal;
}

.chapter > p:not(.eyebrow) {
  max-width: 460px;
  color: rgba(247, 255, 248, .88);
  font-size: clamp(.92rem, 1.1vw, 1.08rem);
  font-weight: 500;
  line-height: 1.52;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .9);
}

.chapter--right > p:not(.eyebrow) {
  margin-left: auto;
}

.chapter--result > p:not(.eyebrow) {
  margin-inline: auto;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 1rem 1.1rem 1rem 1.25rem;
  border: 1px solid rgba(114, 242, 111, .35);
  border-radius: 15px;
  background: rgba(8, 40, 17, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 15px 40px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  transition: all .3s var(--ease);
}

.primary-action span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #07190d;
  font-weight: 900;
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.primary-action:hover {
  border-color: var(--green-bright);
  background: rgba(12, 55, 24, .85);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(70, 211, 79, 0.25);
}

.primary-action:hover span {
  transform: translateY(3px);
  background: var(--green-bright);
}

/* Floating Bottom Progress Indicator */
.scroll-progress {
  position: absolute;
  z-index: 5;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, calc(100% - 8rem));
  height: 40px;
  border-radius: 999px;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .8rem;
  align-items: center;
  color: rgba(246, 255, 248, .84);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .85);
}

.progress-index {
  color: var(--green-bright);
}

.progress-track {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .16);
}

.progress-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green-bright);
  box-shadow: 0 0 12px var(--green);
  transform: scaleX(0);
  transform-origin: left;
}

.scroll-hint {
  position: absolute;
  bottom: 1.85rem;
  left: 1.5rem;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .6rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .95);
  z-index: 5;
}

.scroll-hint span {
  width: 14px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  position: relative;
}

.scroll-hint span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--green-bright);
  animation: scrollCue 1.6s infinite;
}

@keyframes scrollCue {
  0% { transform: translate(-50%, 0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(-50%, 8px); opacity: 0; }
}

/* ==========================================================================
   CONTENT SECTIONS (BELOW CANVAS STAGE)
   ========================================================================== */
.content-wrapper {
  position: relative;
  z-index: 20;
  background: var(--green-deep);
  border-top: 1px solid var(--glass-line);
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.9);
}

.section {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-head h2 {
  font-size: 2.8rem;
  line-height: 1.12;
  margin-top: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 16px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card-item {
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}

.card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity .2s ease;
}

.card-item:hover {
  transform: translateY(-8px);
  border-color: var(--green);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card-item:hover::before {
  opacity: 1;
}

.card-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--green-bright);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}

.card-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-link {
  color: var(--green-bright);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap .2s ease;
}

.card-link:hover {
  gap: 10px;
}

/* Quote Calculator Section */
.calc-box {
  padding: 48px;
  border-radius: var(--radius-lg);
  max-width: 860px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-control {
  background: rgba(4, 16, 8, 0.7);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color .2s ease;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(70, 211, 79, 0.3);
}

.full-width {
  grid-column: 1 / -1;
}

.preview-msg {
  background: rgba(4, 16, 8, 0.8);
  border: 1px dashed var(--glass-line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.preview-msg span {
  color: var(--green-bright);
  font-weight: 600;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  z-index: 1000;
  right: 1.5rem;
  bottom: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
  min-width: 58px;
  height: 58px;
  padding: 0 .72rem 0 1.05rem;
  border-radius: 999px;
  color: #061109;
  background: rgba(70, 211, 79, .94);
  border-color: rgba(170, 255, 175, .68);
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .34), 0 0 0 6px rgba(70, 211, 79, .08);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}

.whatsapp-float span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: max-width .45s var(--ease), opacity .25s ease;
}

.whatsapp-float svg {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4), 0 0 0 7px rgba(70, 211, 79, .12);
}

.whatsapp-float:hover span {
  max-width: 180px;
  opacity: 1;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-line);
  padding: 60px 40px 40px;
  text-align: center;
  color: var(--muted-dim);
  font-size: 0.88rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Universal Dynamic Mobile Layout (Flexbox Percentage Proportions - No Fixed Pixels) */
@media (max-width: 1024px), (pointer: coarse) {
  html.is-mobile-device .site-header,
  .site-header {
    top: 0.35rem;
    width: calc(100% - 0.8rem);
    min-height: 48px;
    border-radius: 12px;
    grid-template-columns: 1fr auto;
    padding: 0.35rem 0.6rem;
    background: rgba(4, 16, 8, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .header-status { display: none; }
  .header-cta { padding: 0.45rem 0.7rem; font-size: 0.6rem; }
  .brand-name { font-size: 0.8rem; }
  .brand-name small { font-size: 0.36rem; }
  .brand-logo { width: 32px; height: 32px; }

  html.is-mobile-device .scroll-story,
  .scroll-story {
    height: 480vh;
    background: var(--green-darker);
  }

  html.is-mobile-device .story-stage,
  .story-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 54px;
    padding-inline: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    background: #041008;
  }

  html.is-mobile-device .canvas-container,
  .canvas-container {
    position: relative !important;
    inset: auto !important;
    z-index: 5;
    width: calc(100% - 1.2rem) !important;
    margin-inline: auto !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0.45rem !important;
    flex: 0 0 46% !important;
    max-height: 48% !important;
    height: auto !important;
    border-radius: 18px !important;
    border: 1px solid rgba(116, 255, 124, 0.4) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(70, 211, 79, 0.25) !important;
    overflow: hidden !important;
    background: #041008 !important;
    will-change: transform;
    transform: translateZ(0);
  }

  html.is-mobile-device .frame-canvas,
  .frame-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    will-change: transform;
    transform: translateZ(0);
  }

  .video-shade { display: none !important; }
  .technical-grid { opacity: 0.06; }

  /* Docked Bottom Sheet: Dynamically Takes Remaining 54% Height with Apple Glass Aesthetic */
  html.is-mobile-device .story-chapters,
  .story-chapters {
    position: relative;
    z-index: 10;
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  html.is-mobile-device .chapter,
  .chapter, .chapter--right, .chapter--result {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    text-align: left;
    background: linear-gradient(180deg, rgba(6, 26, 13, 0.98) 0%, rgba(3, 14, 7, 1) 100%);
    border-top: 1px solid rgba(116, 255, 124, 0.4);
    border-radius: 24px 24px 0 0;
    padding: 1.4rem 1.25rem 3.8rem 1.25rem;
    box-shadow: 0 -16px 45px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 20px, 0);
    transition: opacity .2s ease, transform .32s var(--ease), visibility 0s linear .2s;
    pointer-events: none;
  }

  /* Sheet Drag Handle Indicator */
  .chapter::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 4px;
    background: rgba(116, 255, 124, 0.4);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(70, 211, 79, 0.3);
  }

  html.is-mobile-device .chapter.is-active,
  html.is-mobile-device .chapter--result.is-active,
  .chapter.is-active,
  .chapter--result.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
    transition: opacity .22s ease, transform .36s var(--ease), visibility 0s !important;
    pointer-events: auto !important;
  }

  .chapter--right .eyebrow, .chapter--result .eyebrow {
    justify-content: flex-start;
  }

  .eyebrow {
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--green-bright);
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .eyebrow span {
    background: rgba(116, 255, 124, 0.15);
    border: 1px solid rgba(116, 255, 124, 0.35);
    color: #72f26f;
    padding: 0.1rem 0.45rem;
    border-radius: 99px;
    font-weight: 900;
    font-size: 0.68rem;
  }

  .chapter h1, .chapter h2 {
    font-family: var(--font-display);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.15rem;
  }

  .chapter h1 em, .chapter h2 em {
    color: #72f26f;
    font-style: normal;
    font-weight: 900;
    -webkit-text-fill-color: initial;
    background: none;
  }

  .chapter h1 {
    font-size: clamp(1.48rem, 6.4vw, 2.1rem);
    line-height: 1.1;
  }

  .chapter h2 {
    font-size: clamp(1.36rem, 5.8vw, 1.9rem);
    line-height: 1.12;
  }

  .chapter > p:not(.eyebrow) {
    font-size: clamp(0.85rem, 3.6vw, 0.94rem);
    line-height: 1.45;
    color: rgba(236, 255, 240, 0.9);
  }

  .primary-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.85rem 1.15rem;
    font-size: 0.76rem;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, #46d34f 0%, #25a82f 100%);
    color: #030e07;
    border: none;
    box-shadow: 0 6px 24px rgba(70, 211, 79, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .primary-action span {
    width: 28px;
    height: 28px;
    background: #030e07;
    color: var(--green-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
  }

  .scroll-progress {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1.8rem);
    height: 38px;
    padding: 0 0.9rem;
    background: rgba(3, 14, 7, 0.96);
    border: 1px solid rgba(116, 255, 124, 0.35);
    border-radius: 999px;
    z-index: 25;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
  }

  .whatsapp-float {
    bottom: 4.0rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .calc-grid { grid-template-columns: 1fr; }
  .calc-box { padding: 22px 16px; }
  .whatsapp-float span { display: none; }
  .scroll-hint { display: none; }
}

/* ==========================================================================
   2026 RESPONSIVE REFINEMENT — NAVIGATION, PORTFOLIO, CARDS & CONTACT
   ========================================================================== */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.header-nav a {
  color: rgba(245, 255, 247, .82);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--green-bright);
}

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

.portfolio-section {
  max-width: 1320px;
  padding-top: clamp(4rem, 8vw, 7rem);
}

.portfolio-head {
  text-align: left;
  margin-left: 0;
  max-width: 780px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 27vw, 370px);
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}

.portfolio-item {
  position: relative;
  grid-column: span 5;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(116, 255, 124, .2);
  border-radius: clamp(16px, 2vw, 28px);
  background: #041008;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .36);
}

.portfolio-item--wide { grid-column: span 7; }
.portfolio-item--tall { grid-column: span 5; grid-row: span 2; }

.portfolio-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease), filter .4s ease;
}

.portfolio-item--tall img { object-position: 50% 45%; }

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(2, 10, 5, .94));
  pointer-events: none;
}

.portfolio-item figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(1rem, 2.2vw, 1.75rem);
  right: clamp(1rem, 2.2vw, 1.75rem);
  bottom: clamp(1rem, 2.2vw, 1.75rem);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .75rem;
  align-items: center;
}

.portfolio-item figcaption span {
  grid-row: 1 / 3;
  color: var(--green-bright);
  font: 800 .74rem/1 var(--font-display);
}

.portfolio-item figcaption strong {
  font: 800 clamp(1rem, 1.7vw, 1.35rem)/1.1 var(--font-display);
}

.portfolio-item figcaption small {
  margin-top: .28rem;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .04em;
}

@media (hover: hover) {
  .portfolio-item:hover img { transform: scale(1.035); filter: saturate(1.08); }
}

.contact-panel {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  border: 1px solid rgba(116, 255, 124, .28);
  border-radius: clamp(22px, 3vw, 36px);
  background:
    linear-gradient(120deg, rgba(12, 48, 23, .96), rgba(4, 16, 8, .98)),
    var(--green-deep);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .4);
}

.contact-panel h2 {
  max-width: 720px;
  margin-top: .7rem;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: .98;
}

.contact-panel > div > p:last-child {
  max-width: 680px;
  margin-top: 1rem;
  color: var(--muted);
}

.contact-panel .primary-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Tablet Refinements (<= 1024px) */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .section {
    padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
  }

  .section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
  .section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .card-item { padding: 1.5rem 1.25rem; }
  .portfolio-grid { grid-auto-rows: clamp(220px, 32vw, 320px); }
  .contact-panel { width: calc(100% - 2.5rem); }
}

/* Smartphone Refinements (<= 768px) */
@media (max-width: 768px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .header-nav { display: none; }
  .header-cta { white-space: nowrap; }
  .brand { min-width: 0; gap: .5rem; }
  .brand-name { min-width: 0; }

  .section {
    padding: 3.5rem 1rem;
  }

  .section-head,
  .portfolio-head {
    text-align: left;
    margin-bottom: 1.75rem;
  }

  .section-head h2 {
    font-size: clamp(1.65rem, 7.5vw, 2.3rem);
    overflow-wrap: anywhere;
  }

  .section-head p { font-size: .92rem; }
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card-item:hover { transform: none; }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .portfolio-item,
  .portfolio-item--wide,
  .portfolio-item--tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .portfolio-item--tall { aspect-ratio: 4 / 3; }
  .portfolio-item figcaption { left: 1rem; right: 1rem; bottom: 1rem; }

  .contact-panel {
    width: calc(100% - 1.8rem);
    margin-bottom: 4rem;
    padding: 1.75rem 1.15rem;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1.25rem;
  }

  .contact-panel h2 { font-size: clamp(1.8rem, 8.5vw, 2.6rem); }
  .contact-panel .primary-action { width: 100%; white-space: normal; }
  footer { padding: 2.5rem 1rem 5rem; }
}

/* Small Smartphone Refinements (<= 380px) */
@media (max-width: 380px) {
  .brand-name small { display: none; }
  .header-cta { padding-inline: .45rem; font-size: .54rem; }
  .chapter, .chapter--right, .chapter--result { padding: 1.1rem 0.9rem 3.5rem 0.9rem; }
  .portfolio-item figcaption small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

