@import url("../fonts/inter.css");

/* ============================================================
   TOKENS — pulled from the "Perk" reference system:
   electric lime on warm parchment paper. Single typeface (Inter,
   substitute for OTSono), weights 400/500 only. No shadows, no
   gradients. Radius: 28px cards/buttons, 9999px pills/tags,
   8px inputs. Lime stays the only PRIMARY action color. Coral and
   sky are secondary pastel tones reserved strictly for small crew
   avatars and floating stat badges (matching Perk's own live-site
   avatar/badge treatment) — never used for buttons or body text.
   ============================================================ */
:root{
  --ink: #14140f;
  --paper: #ffffff;
  --parchment: #f5f5eb;
  --lime: #beff50;
  --ash: #d2d2c8;
  --graphite: #6e6e64;
  --charcoal: #30302a;
  --stone: #919183;
  --smoke: #b9b9b7;
  --coral: #ff9ec4;
  --sky: #9ecbff;

  --r-card: 28px;
  --r-inner: 18px;
  --r-pill: 9999px;
  --r-input: 8px;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16,1,0.3,1);
}

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

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display: block; max-width: 100%; }
a{ color: inherit; }

.wrap{
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   TYPE
   ============================================================ */
.section-title{
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.14;
  margin: 0 0 .6em;
  max-width: 20ch;
}

/* eyebrow / tag component */
.tag{
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.tag--lime{ background: var(--lime); color: var(--ink); }
.tag--parchment{ background: var(--parchment); color: var(--graphite); }
.tag--ghost-dark{ background: transparent; color: inherit; opacity: .7; padding: 0; margin-bottom: 14px; }

/* ============================================================
   BUTTONS
   No shadows. Lime fill is the only filled/action treatment.
   Radius 28px on large CTAs (per "buttons: 28px"), full pill on
   the compact topbar / chip CTAs.
   ============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font);
  font-weight: 500;
  border-radius: var(--r-card);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease), opacity .18s var(--ease);
}
.btn:active{ transform: scale(.97); }

.btn--pill{
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 14px 24px 14px 28px;
  font-size: .95rem;
}
.btn--pill:hover{ opacity: .84; }

.btn--lg{ padding: 17px 30px 17px 34px; font-size: 1.02rem; }

.btn--underline{
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  border-bottom: 1.5px solid var(--ink);
  padding: 2px 0;
  font-size: 1rem;
}
.btn--underline:hover{ opacity: .7; }

/* ============================================================
   TOPBAR
   Single line, ghost brand + lime pill CTA, hairline rule (no
   shadow, no blur) marks the boundary per "rules, not whitespace".
   ============================================================ */
.topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--ash);
}
.topbar__inner{
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark{ color: var(--ink); flex-shrink: 0; }
.brand__word{
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   HERO — full-bleed autumn-cabin video, dark scrim for legibility,
   animated warm "window glow" standing in for the boiler running.
   One deliberate photographic/dark moment inside an otherwise flat
   light system; scoped to the hero only, per the brief.
   ============================================================ */
.hero{
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  flex-direction: column;
  padding-block: 0;
  background: var(--ink);
}
.hero__media{ position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero__video{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.hero__scrim{
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(20,20,15,.86) 0%, rgba(20,20,15,.6) 40%, rgba(20,20,15,.22) 70%),
    linear-gradient(0deg, rgba(20,20,15,.55), rgba(20,20,15,0) 40%);
}
.glow{
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  background: radial-gradient(circle, #ffcf8a, rgba(255,180,80,0) 72%);
  opacity: .5;
  animation: glowPulse 4.5s ease-in-out infinite;
}
.glow--1{ width: 100px; height: 100px; left: 62%; top: 44%; }
.glow--2{ width: 64px; height: 64px; left: 67%; top: 49%; animation-delay: 1.4s; }
.glow--3{ width: 50px; height: 50px; left: 59%; top: 51%; animation-delay: 2.7s; }
@keyframes glowPulse{ 0%, 100%{ opacity: .32; transform: scale(.88); } 50%{ opacity: .7; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce){ .glow{ animation: none; opacity: .55; } }

.hero__grid{
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  align-content: center;
  width: 100%;
  padding-block: clamp(32px, 6vw, 64px);
}
.hero__title{
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 .5em;
  max-width: 20ch;
}
.hero__title--light{ color: var(--paper); }
.hero__sub{
  font-size: 1.1rem;
  color: var(--graphite);
  max-width: 42ch;
  margin: 0 0 1.7em;
  line-height: 1.5;
}
.hero__sub--light{ color: rgba(245,245,235,.82); }

/* product-preview card: the hero's visual is the bot widget itself,
   not a separate illustration — matches the "large type + product
   screenshot" hero pattern. */
.preview-card{
  background: var(--parchment);
  border: 1px solid var(--ash);
  border-radius: var(--r-card);
  overflow: hidden;
}
.preview-card__head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--graphite);
  border-bottom: 1px solid var(--ash);
}
.preview-card__icon{
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.preview-card__icon svg{ width: 15px; height: 15px; }
.preview-card__body{
  padding: 22px 24px 28px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.bubble{
  font-size: .9rem;
  line-height: 1.45;
  padding: 11px 16px;
  border-radius: var(--r-inner);
  max-width: 88%;
  opacity: 0;
  transform: translateY(6px);
  animation: bubbleIn .5s var(--ease) forwards;
}
@media (prefers-reduced-motion: reduce){ .bubble{ opacity: 1; transform: none; animation: none; } }
@keyframes bubbleIn{ to{ opacity: 1; transform: none; } }
.bubble--bot{ background: var(--paper); align-self: flex-start; border: 1px solid var(--ash); }
.bubble--user{ background: var(--ink); color: var(--parchment); align-self: flex-end; font-weight: 500; }

/* ============================================================
   HERO STATS OVERLAY — anchored to the bottom edge of the video,
   not a separate white strip. Frosted dark bar over the footage.
   ============================================================ */
.hero__stats{
  position: relative;
  z-index: 2;
  margin-top: auto;
  align-self: stretch;
  background: rgba(20,20,15,.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid rgba(245,245,235,.16);
}
.hero__stats-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__stats-item{
  padding: 22px 18px;
  border-left: 1px solid rgba(245,245,235,.16);
  text-align: center;
}
.hero__stats-item:first-child{ border-left: none; }
.hero__stats-num{
  display: block;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--lime);
  line-height: 1;
}
.hero__stats-num sup{ font-size: .4em; top: -1.1em; }
.hero__stats-num small{ font-size: .5em; font-weight: 500; }
.hero__stats-label{
  display: block;
  margin-top: 8px;
  font-size: .8rem;
  color: rgba(245,245,235,.78);
}

/* ============================================================
   SERVICES — animated scroll-snap carousel. Mixed content per
   slide (photo, crew avatars, big icon badge) so it doesn't read
   as four identical text-in-a-box tiles.
   ============================================================ */
.services{ padding-block: 40px 88px; }
.services__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.services__head .section-title{ margin-bottom: 0; }

.carousel-nav{ display: flex; gap: 10px; flex-shrink: 0; }
.carousel-arrow{
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ash);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.carousel-arrow svg{ width: 18px; height: 18px; }
.carousel-arrow:hover{ background: var(--ink); color: var(--paper); }
.carousel-arrow:active{ transform: scale(.94); }
.carousel-arrow:disabled{ opacity: .35; cursor: default; background: var(--paper); color: var(--ink); }

.carousel{ overflow: hidden; }
.carousel__track{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar{ display: none; }
.carousel__slide{
  scroll-snap-align: start;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .25s var(--ease);
}
.carousel__slide.is-visible{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .carousel__slide{ opacity: 1; transform: none; } }
.carousel__slide:hover{ transform: translateY(-4px); }
.carousel__slide.is-visible:hover{ transform: translateY(-4px); }

.carousel-dots{ display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ash);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color .2s var(--ease), width .2s var(--ease);
}
.carousel-dot.is-active{ background: var(--ink); width: 22px; border-radius: var(--r-pill); }

.service-card{
  background: var(--paper);
  border: 1px solid var(--ash);
  border-radius: var(--r-card);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 320px;
}
.service-card--wide{
  width: 560px;
  background: var(--parchment);
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
  padding: 0;
  overflow: hidden;
}
.service-card__copy{ display: flex; flex-direction: column; gap: 14px; padding: 34px 0 34px 34px; max-width: 300px; }
.service-card--wide h3{ margin: 0 0 6px; }
.service-card--wide p{ margin: 0; max-width: 42ch; }
.service-card__photo{ width: 220px; flex-shrink: 0; object-fit: cover; border-radius: 0 var(--r-card) var(--r-card) 0; }

.service-card__crew{ display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.crew-avatar{
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  border: 2px solid var(--parchment);
  margin-left: -10px;
}
.crew-avatar:first-child{ margin-left: 0; }
.crew-avatar--lime{ background: var(--lime); }
.crew-avatar--coral{ background: var(--coral); }
.crew-avatar--sky{ background: var(--sky); }
.crew-avatar__label{ font-size: .8rem; color: var(--graphite); margin-left: 6px; }

.service-card--accent{ background: var(--lime); border-color: var(--lime); }
.service-card__badge{
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.service-card__badge svg{ width: 24px; height: 24px; }

.service-card--photo{ padding: 0; position: relative; overflow: hidden; min-height: 220px; }
.service-card--photo img{ width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.service-card__photo-overlay{
  position: relative;
  margin-top: auto;
  padding: 20px;
  background: linear-gradient(0deg, rgba(20,20,15,.82), rgba(20,20,15,0) 70%);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}
.service-card__photo-overlay h3{ color: var(--paper); }
.service-card__photo-overlay p{ color: rgba(245,245,235,.82); }

.service-card__icon{ width: 28px; height: 28px; color: var(--ink); flex-shrink: 0; }
.service-card--wide .service-card__icon{ width: 40px; height: 40px; }
.service-card h3{ font-size: 1.08rem; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.service-card p{ margin: 0; font-size: .92rem; color: var(--graphite); line-height: 1.5; }
.service-card--accent p{ color: rgba(20,20,15,.72); }

/* ============================================================
   CLIENTS — partner architecture bureaus / developers, generated
   monogram marks (invented names, so real logos aren't honest here)
   ============================================================ */
.clients{ padding-block: 8px 88px; }
.clients .section-title{ max-width: 24ch; }
.clients__grid{
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 30px;
}
.client-mark{ display: flex; align-items: center; gap: 12px; }
.client-mark__glyph{
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}
.client-mark__name{ font-size: .92rem; color: var(--graphite); font-weight: 500; }

/* ============================================================
   BOT SHOWCASE — dark island (slow) vs lime accent (fast)
   ============================================================ */
.showcase{ padding-block: 40px 88px; }
.showcase__grid{
  display: grid;
  grid-template-columns: .95fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.showcase__body{ color: var(--graphite); max-width: 46ch; line-height: 1.6; }

.showcase__panels{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
  align-items: stretch;
}
.showcase__panel{
  border-radius: var(--r-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.showcase__panel--dark{ background: var(--charcoal); color: var(--parchment); }
.showcase__panel--lime{ background: var(--lime); color: var(--ink); }
.ring-icon{ width: 32px; height: 32px; opacity: .7; }
.showcase__panel-line{ margin: 0; font-size: .9rem; opacity: .8; }
.showcase__panel-line--strong{ font-weight: 500; opacity: 1; }

.mini-thread{ display: flex; flex-direction: column; gap: 8px; }
.mini-thread__bubble{ font-size: .86rem; line-height: 1.4; padding: 10px 14px; border-radius: var(--r-inner); }
.mini-thread__bubble--user{ background: rgba(20,20,15,.1); align-self: flex-end; max-width: 92%; }
.mini-thread__bubble--bot{ background: var(--ink); color: var(--parchment); font-weight: 500; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calculator{ padding-block: 40px 88px; }
.calculator__intro{ color: var(--graphite); max-width: 52ch; margin: 0 0 34px; }

.calculator__frame{
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 32px;
  align-items: stretch;
  background: var(--parchment);
  border-radius: var(--r-card);
  padding: 32px;
}
.calc-visual{ display: flex; align-items: center; justify-content: center; }
.calc-house{ width: 100%; max-width: 220px; height: auto; }
#calcFill{ transition: fill .5s var(--ease); }

.chatbox{
  background: var(--paper);
  border: 1px solid var(--ash);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.chatbox__head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ash);
  font-size: .86rem;
  font-weight: 500;
  color: var(--graphite);
}
.chatbox__body{
  padding: 22px 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.chatbox__body .bubble--bot{ background: var(--parchment); }
.chatbox__body .bubble{ font-size: .96rem; max-width: 85%; }
.chatbox__body .bubble--result{
  background: var(--lime);
  color: var(--ink);
  align-self: stretch;
  max-width: 100%;
  padding: 20px 22px;
}
.bubble--result .result-figure{
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 4px;
}
.chatbox__options{
  padding: 16px 22px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip{
  font-family: var(--font);
  font-weight: 500;
  font-size: .88rem;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ash);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.chip:hover{ background: var(--parchment); border-color: var(--stone); }
.chip:active{ transform: scale(.96); }
.chip--restart{ border-color: var(--ink); }
.chip--restart:hover{ background: var(--ink); color: var(--parchment); }
.chip--submit{ background: var(--lime); border-color: var(--lime); }
.chip--submit:hover{ background: var(--ink); border-color: var(--ink); color: var(--parchment); opacity: 1; }

/* ============================================================
   STAGES
   ============================================================ */
.stages{ padding-block: 40px 96px; }
.stages__row{
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 8px;
}
.stage{ min-width: 0; }
.stage__num{
  color: var(--stone);
  font-weight: 500;
  font-size: .85rem;
  margin-bottom: 14px;
}
.stage__icon{ width: 28px; height: 28px; color: var(--ink); margin-bottom: 16px; }
.stage h3{ font-size: 1rem; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; }
.stage p{ font-size: .87rem; color: var(--graphite); line-height: 1.5; margin: 0; }
.stage-arrow{ width: 40px; height: 16px; color: var(--ash); margin-top: 46px; }

/* ============================================================
   PORTFOLIO — completed-projects gallery, real photography,
   1 wide + 3 square cells (bento sized to exact content count)
   ============================================================ */
.portfolio{ padding-block: 40px 88px; }
.portfolio__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}
.portfolio__item{
  position: relative;
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.portfolio__item--wide{ grid-column: span 2; grid-row: span 2; }
.portfolio__item img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.95);
  transition: transform .5s var(--ease), filter .3s var(--ease);
}
.portfolio__item:hover img{ filter: grayscale(.4) contrast(1.05) brightness(1); }
.portfolio__item:hover img{ transform: scale(1.04); }
.portfolio__caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(20,20,15,.85), rgba(20,20,15,0) 75%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.portfolio__caption-title{ color: var(--paper); font-weight: 500; font-size: .96rem; }
.portfolio__caption-meta{ color: rgba(245,245,235,.78); font-size: .8rem; }

/* ============================================================
   TESTIMONIALS — one lead quote + two supporting, not 3 equal cards
   ============================================================ */
.testimonials{ padding-block: 40px 88px; }
.testimonials__grid{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.testimonial{
  margin: 0;
  background: var(--parchment);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.testimonial--lead{ background: var(--lime); padding: 40px; }
.testimonial--dark{ background: var(--charcoal); color: var(--parchment); }
.testimonial__mark{
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 500;
  color: rgba(20,20,15,.35);
}
.testimonial blockquote{
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.testimonial--lead blockquote{ font-size: 1.3rem; }
.testimonial:not(.testimonial--lead) blockquote{ font-size: .96rem; }
.testimonial figcaption{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .84rem;
}
.testimonial figcaption img{ width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.testimonial:not(.testimonial--lead) figcaption img{ width: 32px; height: 32px; }
.testimonial figcaption small{ color: var(--graphite); font-weight: 400; }
.testimonial--dark figcaption small{ color: var(--smoke); }

.testimonials__side{ display: flex; flex-direction: column; gap: 16px; }
.testimonials__side .testimonial{ flex: 1; padding: 26px; gap: 16px; }

/* ============================================================
   FLOATING BADGES — small pastel stat pills (Perk's own live-site
   avatar/badge treatment), used only on the closing dark CTA.
   ============================================================ */
.badge{
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 16px 10px 12px;
  border-radius: var(--r-pill);
}
.badge svg{ width: 17px; height: 17px; }
.badge--coral{ background: var(--coral); }
.badge--sky{ background: var(--sky); }
.badge--pos-1{ top: 34px; left: 8%; transform: rotate(-4deg); }
.badge--pos-2{ top: 64px; right: 6%; transform: rotate(3deg); }

.btn--ghost-light{
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(245,245,235,.4);
  border-radius: var(--r-pill);
  padding: 16px 28px;
  font-size: .95rem;
}
.btn--ghost-light:hover{ background: rgba(245,245,235,.1); }

/* ============================================================
   FINAL CTA — dark inverted block, floating stat badges, dual CTA
   ============================================================ */
.final-cta{ padding-block: 0; }
.final-cta__inner{
  position: relative;
  background: var(--ink);
  color: var(--parchment);
  border-radius: var(--r-card);
  padding: clamp(64px, 10vw, 104px) clamp(24px, 6vw, 64px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.final-cta__title{
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  max-width: 16ch;
}
.final-cta__sub{
  color: rgba(245,245,235,.68);
  max-width: 46ch;
  margin: 0;
  font-size: 1.02rem;
}
.final-cta__actions{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   FOOTER — the only inverted dark moment at page bottom
   ============================================================ */
.site-footer{
  background: var(--ink);
  margin-top: 0;
}
.site-footer__inner{
  padding-block: 32px;
  text-align: center;
}
.site-footer p{
  font-size: .82rem;
  color: var(--smoke);
  margin: 0;
}
.site-footer a{ color: var(--parchment); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{ opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; gap: 32px; }
  .showcase__grid{ grid-template-columns: 1fr; }
  .calculator__frame{ grid-template-columns: 1fr; }
  .calc-visual{ padding-bottom: 8px; }
  .calc-house{ max-width: 160px; margin-inline: auto; }
  .stages__row{ grid-template-columns: 1fr; }
  .stage-arrow{ display: none; }
  .stage{ padding-block: 14px; border-top: 1px solid var(--ash); }
  .stage:first-child{ border-top: none; }
  .portfolio__grid{ grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .portfolio__item--wide{ grid-column: span 2; grid-row: span 1; }
  .testimonials__grid{ grid-template-columns: 1fr; }
  .badge{ position: static; transform: none !important; margin: 0; }
  .final-cta__inner{ gap: 16px; }
}

@media (max-width: 720px){
  .topbar__inner{ height: 64px; }
  .topbar__cta{ padding: 11px 18px 11px 20px; font-size: .88rem; }
  .hero__stats-row{ grid-template-columns: repeat(2, 1fr); }
  .hero__stats-item:nth-child(2){ border-left: 1px solid rgba(245,245,235,.16); }
  .hero__stats-item:nth-child(odd){ border-left: none; }
  .hero__stats-item{ border-top: 1px solid rgba(245,245,235,.16); padding: 16px 12px; }
  .hero__stats-item:nth-child(-n+2){ border-top: none; }
  .showcase__panels{ grid-template-columns: 1fr; }
  .portfolio__grid{ grid-template-columns: 1fr; grid-template-rows: repeat(4, 240px); }
  .portfolio__item--wide{ grid-column: span 1; }
  .testimonials__side{ flex-direction: column; }
}

@media (max-width: 560px){
  .wrap{ padding-inline: 18px; }
  .hero__title{ max-width: none; }
  .chatbox{ min-height: 300px; }
  .service-card{ width: calc(100vw - 76px); }
  .service-card--wide{ width: calc(100vw - 76px); flex-direction: column; }
  .service-card__copy{ padding: 28px 24px 0; max-width: none; }
  .service-card__photo{ width: 100%; height: 200px; border-radius: 0; margin-top: 24px; }
  .services__head{ align-items: center; }
  .clients__grid{ gap: 20px 28px; }
}
