/* ==========================================================================
   Codirex — components
   Every reusable surface: buttons, cards, the hero visual, the estimator,
   FAQ, forms, toast. Each component keeps its own responsive overrides.
   ========================================================================== */

/* --------------------------------------------------------------- buttons -- */

.nav-cta, .button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -.02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav-cta {
  flex: 0 0 auto;
  min-height: 44px;
  background: var(--lime);
  color: #08090c;
}

.button.primary {
  background: var(--lime);
  color: #08090c;
  box-shadow: 0 12px 38px rgba(199, 255, 74, .16);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button:hover, .nav-cta:hover { transform: translateY(-2px); }
.button.primary:hover, .nav-cta:hover { box-shadow: 0 18px 46px rgba(199, 255, 74, .25); }

.button[disabled], .button[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.arrow {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.button:hover .arrow, .nav-cta:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
}

.link-arrow:hover { color: var(--lime); }
.link-arrow.spaced { margin-top: 14px; }
.button.block { width: 100%; margin-top: 14px; }

/* -------------------------------------------------------- hero furniture -- */

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  width: 720px;
  aspect-ratio: 1;
  top: -230px;
  right: -160px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, rgba(255,255,255,.32), transparent 10%),
    radial-gradient(circle at 35% 30%, rgba(199,255,74,.72), transparent 22%),
    radial-gradient(circle at 62% 60%, rgba(143,115,255,.8), transparent 40%),
    radial-gradient(circle at 55% 48%, rgba(84,221,255,.44), transparent 52%);
  filter: blur(8px);
  opacity: .74;
  animation: orbFloat 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-orb.orb-soft { width: 560px; top: -280px; right: -180px; opacity: .5; }

@keyframes orbFloat {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-40px,55px,0) scale(1.08); }
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #d9dce4;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size: .78rem;
}

.availability i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(199,255,74,.10), 0 0 22px rgba(199,255,74,.65);
}

/* ----------------------------------------------------- hero dashboard art -- */

.hero-visual {
  position: relative;
  min-height: 625px;
  perspective: 1200px;
}

.visual-shell {
  position: absolute;
  inset: 28px 0 0 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035)),
    rgba(14,16,22,.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform: rotateY(-8deg) rotateX(4deg);
  overflow: hidden;
}

.visual-bar {
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.visual-bar i { width: 8px; height: 8px; border-radius: 50%; background: #343945; }
.visual-bar i:first-child { background: var(--orange); }
.visual-bar span { margin-left: auto; color: var(--muted-2); font-size: .68rem; }

.visual-body {
  display: grid;
  grid-template-columns: 86px 1fr;
  min-height: calc(100% - 58px);
}

.visual-side {
  border-right: 1px solid var(--line-soft);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-dot {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.035);
  position: relative;
}

.side-dot.active { background: rgba(199,255,74,.13); border-color: rgba(199,255,74,.35); }
.side-dot::after { content:""; position:absolute; inset:13px; border-radius:4px; background:#5f6572; }
.side-dot.active::after { background: var(--lime); }

.dashboard {
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(143,115,255,.14), transparent 34%),
    rgba(7,8,11,.24);
}

.dash-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}

.dash-top h3 { margin: 4px 0 0; font-size: 1.5rem; letter-spacing: -.05em; }
.status-pill { padding: 8px 12px; border-radius: 999px; color: var(--lime); background: rgba(199,255,74,.08); border: 1px solid rgba(199,255,74,.22); font-size: .68rem; }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.metric {
  min-height: 128px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.04);
}

.metric span { color: var(--muted-2); font-size: .72rem; }
.metric strong { display:block; margin-top:10px; font-size:2rem; letter-spacing:-.06em; }
.metric small { color: #7edfaa; }

.chart-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
}

.chart-head { display:flex; justify-content:space-between; gap:20px; color:var(--muted-2); font-size:.72rem; }

.chart {
  height: 145px;
  margin-top: 16px;
  display: flex;
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
  background: repeating-linear-gradient(to top, transparent 0 35px, rgba(255,255,255,.035) 36px);
}

.bar { flex: 1; min-width: 8px; border-radius: 5px 5px 0 0; background: linear-gradient(to top, rgba(143,115,255,.35), var(--violet)); animation: rise 1.1s ease both; }
.bar:nth-child(3n) { background: linear-gradient(to top, rgba(199,255,74,.22), var(--lime)); }
@keyframes rise { from { height: 0; } }

/* Illustrative bar heights — kept in CSS so no page needs an inline style. */
.chart .bar:nth-child(1) { height: 28%; }
.chart .bar:nth-child(2) { height: 38%; }
.chart .bar:nth-child(3) { height: 34%; }
.chart .bar:nth-child(4) { height: 52%; }
.chart .bar:nth-child(5) { height: 47%; }
.chart .bar:nth-child(6) { height: 64%; }
.chart .bar:nth-child(7) { height: 58%; }
.chart .bar:nth-child(8) { height: 73%; }
.chart .bar:nth-child(9) { height: 68%; }
.chart .bar:nth-child(10) { height: 82%; }
.chart .bar:nth-child(11) { height: 78%; }
.chart .bar:nth-child(12) { height: 96%; }

.float-card {
  position: absolute;
  z-index: 3;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(16,18,24,.86);
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
  animation: cardFloat 6s ease-in-out infinite alternate;
}

.float-card strong { display:block; font-size:1.08rem; letter-spacing:-.04em; }
.float-card span { color:var(--muted-2); font-size:.72rem; }
.float-one { right: -42px; top: 3px; }
.float-two { left: -52px; bottom: 38px; animation-delay: -2s; }
@keyframes cardFloat { to { transform: translateY(-14px); } }

/* ----------------------------------------------------------- trust strip -- */

.trust-strip {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  background: rgba(255,255,255,.018);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-row {
  display: flex;
  align-items: center;
  gap: 42px;
  padding: 22px 21px;
  white-space: nowrap;
}

.marquee-row span { color: #c8ccd5; font-weight: 700; font-size: .88rem; }
.marquee-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px rgba(199,255,74,.6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------- service cards -- */

.service-card {
  position: relative;
  min-height: 350px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    var(--bg-soft);
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.service-card:hover { transform: translateY(-7px); border-color: rgba(199,255,74,.28); }
.service-num { color: var(--muted-2); }
.service-card h3 { margin: 82px 0 14px; font-size: clamp(1.8rem, 3vw, 3.1rem); line-height:1; letter-spacing:-.06em; }
.service-card p { max-width: 520px; margin: 0; color: var(--muted); }
.service-link { position:absolute; left:30px; bottom:28px; display:flex; align-items:center; gap:8px; color:#fff; font-weight:800; font-size:.88rem; }
.service-card:hover .service-link { color: var(--lime); }

/* Ambient colour behind the line-art figure. Heavily blurred so it reads as
   light rather than a disc, which keeps the illustration legible on top. */
.card-art {
  position: absolute;
  width: 270px;
  aspect-ratio: 1;
  right: -68px;
  top: -62px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: .5;
  transition: opacity .3s ease;
}

.service-card:hover .card-art { opacity: .62; }

.art-violet { background: radial-gradient(circle at 35% 35%, #c4b6ff, var(--violet) 35%, transparent 68%); }
.art-lime { background: radial-gradient(circle at 35% 35%, #efffc8, var(--lime) 32%, transparent 68%); }
.art-cyan { background: radial-gradient(circle at 35% 35%, #c2f6ff, var(--cyan) 34%, transparent 68%); }
.art-orange { background: radial-gradient(circle at 35% 35%, #ffd5bd, var(--orange) 34%, transparent 68%); }

/* Expanded service block used on the services page. */

.service-row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 54px;
  padding: 54px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.service-row h2 { margin: 14px 0 0; font-size: clamp(2.1rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -.06em; }
.service-row p { color: var(--muted); }
.service-row .price-note { margin-top: 22px; color: #d9dce4; font-size: .92rem; }
.service-row .price-note strong { color: #fff; }

.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #d4d7de;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------ work cards -- */

.project {
  position: relative;
  min-height: 590px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: transform .28s ease;
  display: block;
}

.project:hover { transform: translateY(-6px); }

.project-stage {
  position: absolute;
  inset: 0;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-one .project-stage { background: linear-gradient(140deg, #a383ff, #4431a7 62%, #191323); }
.project-two .project-stage { background: linear-gradient(140deg, #d8ff71, #507212 62%, #11170a); }
.project-three .project-stage { background: linear-gradient(120deg, #57ddff, #1c6285 58%, #0b1115); }

.browser-mock {
  width: min(88%, 650px);
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(8,9,12,.92);
  box-shadow: 0 40px 80px rgba(0,0,0,.38);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform .4s ease;
}

.browser-mock.wide { width: min(82%, 820px); transform: rotate(-1deg); }
.project:hover .browser-mock { transform: rotate(0deg) scale(1.025); }
.project-two .browser-mock { transform: rotate(3deg); }

.mock-bar { height: 36px; display:flex; align-items:center; gap:6px; padding:0 14px; border-bottom:1px solid var(--line-soft); }
.mock-bar i { width:7px; height:7px; border-radius:50%; background:#333743; }
.mock-screen { height: calc(100% - 36px); padding: 18px; }
.mock-hero { height: 38%; border-radius: 13px; background: linear-gradient(120deg, rgba(255,255,255,.16), rgba(255,255,255,.035)); }
.mock-hero.tall { height: 48%; }
.mock-row { display:grid; grid-template-columns: repeat(3, 1fr); gap:9px; margin-top:10px; }
.mock-row span { height:74px; border-radius:11px; background:rgba(255,255,255,.07); }
.project-two .mock-row span:nth-child(2), .project-one .mock-row span:first-child { background: rgba(199,255,74,.25); }

.project-meta {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(7,8,11,.68);
  backdrop-filter: blur(18px);
}

.project-meta h3 { margin: 7px 0 0; font-size:1.6rem; letter-spacing:-.05em; }
.project-meta p { margin:0; max-width:310px; color:#c7cbd4; font-size:.85rem; }
.project-tag { color: var(--lime); }

/* Case-study screenshot frame — same furniture, static. */
.case-shot {
  position: relative;
  border-radius: 30px;
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.case-shot .browser-mock { transform: rotate(-1.5deg); width: min(92%, 760px); }

/* --------------------------------------------------------------- process -- */

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.process-step .number { color: var(--lime); }
.process-step h3 { margin:0 0 10px; font-size:1.65rem; letter-spacing:-.045em; }
.process-step p { margin:0; color:var(--muted); }

/* --------------------------------------------------------- results panel -- */

.results-panel {
  border-radius: 36px;
  border: 1px solid var(--line);
  padding: 30px;
  background:
    radial-gradient(circle at 0 0, rgba(143,115,255,.17), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(199,255,74,.10), transparent 35%),
    rgba(255,255,255,.035);
}

.results-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }

.result {
  min-height: 190px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.035);
}

.result strong { display:block; margin-top:50px; font-size:clamp(2.2rem,4vw,4.2rem); line-height:.9; letter-spacing:-.075em; }
.result span { color:var(--muted-2); font-size:.78rem; }

/* Generic panel used for principles, contact blocks and case facts. */

.tile {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
}

.tile h3 { margin: 14px 0 8px; font-size: 1.28rem; letter-spacing: -.04em; }
.tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.tile strong.big { display:block; margin-top:6px; font-size:2rem; letter-spacing:-.06em; }

/* ------------------------------------------------------------- estimator -- */

.quote-copy, .estimator {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255,255,255,.035);
}

.quote-copy { padding:42px; display:flex; flex-direction:column; justify-content:space-between; min-height:620px; overflow:hidden; position:relative; }
.quote-copy::after { content:""; position:absolute; width:380px; height:380px; left:-120px; bottom:-170px; border-radius:50%; background:radial-gradient(circle, rgba(143,115,255,.65), transparent 67%); }
.quote-copy h2 { margin:0; font-size:clamp(2.8rem,5vw,5.1rem); line-height:.92; letter-spacing:-.07em; position:relative; z-index:2; }
.quote-copy p { position:relative; z-index:2; max-width:480px; color:var(--muted); }
.quote-note { position:relative; z-index:2; padding-top:20px; border-top:1px solid var(--line-soft); color:#d9dce4; }

.estimator { padding: 32px; }
.estimator-head { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:28px; }
.estimator-head h3 { margin:0; font-size:1.4rem; letter-spacing:-.04em; }
.currency-toggle { display:flex; padding:4px; border-radius:999px; background:rgba(255,255,255,.05); border:1px solid var(--line-soft); }
.currency-toggle button { border:0; background:transparent; color:var(--muted-2); padding:8px 12px; border-radius:999px; cursor:pointer; font-size:.72rem; }
.currency-toggle button[aria-checked="true"] { background:var(--lime); color:#08090c; }

.field { margin-top:22px; }
.field-label { display:block; margin-bottom:11px; color:#d2d5dc; font-size:.76rem; }
.choices { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }

.choice {
  padding:14px;
  border:1px solid var(--line-soft);
  border-radius:15px;
  background:rgba(255,255,255,.025);
  color:#c5c9d2;
  cursor:pointer;
  text-align:left;
  transition:.2s ease;
}

.choice:hover { border-color:rgba(255,255,255,.24); }

.choice[aria-checked="true"], .choice[aria-pressed="true"] {
  color:#fff;
  border-color:rgba(199,255,74,.45);
  background:rgba(199,255,74,.08);
}

input[type="range"] { width:100%; accent-color:var(--lime); }
.range-row { display:flex; align-items:center; gap:18px; }
.range-value { flex:0 0 auto; min-width:54px; text-align:center; padding:9px 10px; border-radius:12px; background:rgba(255,255,255,.06); }

.estimate-total {
  margin-top:28px;
  padding:24px;
  border-radius:20px;
  background:var(--lime);
  color:#08090c;
}

.estimate-total span { display:block; font-size:.72rem; opacity:.72; }
.estimate-total strong { display:block; margin-top:4px; font-size:2.5rem; letter-spacing:-.065em; }
.estimate-total small { display:block; margin-top:4px; opacity:.7; }

/* ---------------------------------------------------------- testimonials -- */

.testimonial-main, .testimonial-side { border:1px solid var(--line); border-radius:30px; background:rgba(255,255,255,.035); }
.testimonial-main { padding:44px; min-height:420px; display:flex; flex-direction:column; justify-content:space-between; }
.stars { color:var(--lime); letter-spacing:.2em; }
.testimonial-main blockquote { margin:35px 0; font-size:clamp(1.65rem,3.3vw,3.25rem); line-height:1.12; letter-spacing:-.055em; }
.person strong { display:block; }
.person span { color:var(--muted-2); font-size:.84rem; }
.testimonial-side { display:grid; grid-template-rows:repeat(2,1fr); overflow:hidden; }
.mini-quote { padding:28px; }
.mini-quote + .mini-quote { border-top:1px solid var(--line); }
.mini-quote p { margin:16px 0 24px; color:#d4d7de; }

/* -------------------------------------------------------------------- faq -- */

.faq-intro h2 { margin:0; font-size:clamp(2.8rem,5vw,5rem); line-height:.95; letter-spacing:-.065em; }
.faq-intro p { color:var(--muted); }
.faq-list { border-top:1px solid var(--line); }
.faq-item { border-bottom:1px solid var(--line); }

.faq-question {
  width:100%;
  padding:25px 4px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
  font-weight:800;
  font-size:1.03rem;
}

.faq-plus { width:30px; height:30px; border-radius:50%; border:1px solid var(--line); display:grid; place-items:center; flex:0 0 auto; transition:.25s ease; }
.faq-answer { overflow:hidden; transition:max-height .35s ease; }
.js .faq-answer { max-height:0; }
.faq-answer p { margin:0; padding:0 52px 24px 4px; color:var(--muted); }
.faq-item.open .faq-plus { transform:rotate(45deg); background:var(--lime); color:#08090c; border-color:var(--lime); }

/* ---------------------------------------------------------------- contact -- */

.contact-shell {
  position: relative;
  border-radius: 42px;
  border: 1px solid var(--line);
  padding: 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(143,115,255,.28), transparent 30%),
    radial-gradient(circle at 84% 88%, rgba(199,255,74,.14), transparent 30%),
    #0d0f14;
}

.contact-copy h2 { margin:0; font-size:clamp(3rem,6vw,6.5rem); line-height:.87; letter-spacing:-.078em; }
.contact-copy p { max-width:450px; color:var(--muted); font-size:1.04rem; }
.contact-details { margin-top:34px; display:grid; gap:12px; color:#d4d7de; }
.contact-details span { color:var(--muted-2); }
.contact-details a:hover { color: var(--lime); }

.contact-form { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.form-field { display:grid; gap:8px; }
.form-field.full { grid-column:1 / -1; }
.form-field label { color:#c5c9d2; font-size:.78rem; }

.form-field input, .form-field textarea, .form-field select {
  width:100%;
  border:1px solid var(--line);
  border-radius:15px;
  padding:14px 15px;
  background:rgba(4,5,7,.52);
  color:#fff;
  outline:none;
  transition:.2s ease;
}

.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color:var(--lime); box-shadow:0 0 0 3px rgba(199,255,74,.09); }
.form-field textarea { min-height:145px; resize:vertical; }
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: var(--danger); }
.form-submit { grid-column:1 / -1; justify-self:start; margin-top:8px; }
.form-note { grid-column:1 / -1; color:var(--muted-2); font-size:.76rem; }

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 0;
  color: var(--muted);
  font-size: .86rem;
}

.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="success"] { color: var(--lime); }

/* Honeypot — hidden from people, tempting to bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------------ prose -- */

.prose { max-width: 720px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 46px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.055em; }
.prose h3 { margin-top: 34px; font-size: 1.3rem; letter-spacing: -.04em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 10px; }
.prose blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 2px solid var(--lime);
  border-radius: 0 18px 18px 0;
  background: rgba(255,255,255,.035);
  font-size: 1.2rem;
  letter-spacing: -.02em;
  color: var(--text);
}
.prose blockquote footer { padding: 0; margin-top: 12px; color: var(--muted-2); font-size: .86rem; }

/* --------------------------------------------------------- reveal + toast -- */

.js .reveal { opacity:0; transform:translateY(24px); transition:opacity .72s ease, transform .72s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity:1; transform:none; }

.toast {
  position:fixed;
  z-index:300;
  right:20px;
  bottom:20px;
  max-width:min(390px, calc(100vw - 40px));
  padding:15px 18px;
  border-radius:16px;
  color:#08090c;
  background:var(--lime);
  box-shadow:0 18px 55px rgba(0,0,0,.4);
  font-weight:800;
  transform:translateY(20px);
  opacity:0;
  pointer-events:none;
  transition:.3s ease;
}

.toast.show { opacity:1; transform:none; }
.toast.error { background: var(--danger); color: #1a0606; }

/* ----------------------------------------------------------- breakpoints -- */

@media (max-width: 1080px) {
  .hero-visual { min-height:560px; width:min(100%,700px); }
  .results-grid { grid-template-columns:repeat(2,1fr); }
  .quote-copy { min-height:470px; }
  .service-row { grid-template-columns: 1fr; gap: 26px; padding: 42px 0; }
}

@media (max-width: 860px) {
  .nav-cta { margin-left:auto; }
  .contact-shell { padding:36px 24px; }
  .case-shot { padding: 24px; min-height: 320px; }
}

@media (max-width: 640px) {
  .nav-cta { display:none; }
  .hero-visual { min-height:490px; }
  .visual-shell { inset:18px 0 0; transform:none; }
  .visual-body { grid-template-columns:62px 1fr; }
  .visual-side { padding:16px 9px; }
  .side-dot { width:34px; height:34px; }
  .dashboard { padding:18px; }
  .metric { min-height:105px; padding:14px; }
  .metric strong { font-size:1.5rem; }
  .chart { height:110px; }
  .float-one { right:-4px; }
  .float-two { left:-4px; bottom:0; }
  .service-card { min-height:330px; }
  .project { min-height:500px; }
  .project-stage { padding:20px; }
  .project-meta { left:15px; right:15px; bottom:15px; display:block; }
  .project-meta p { margin-top:10px; }
  .results-grid { grid-template-columns:1fr; }
  .result { min-height:145px; }
  .result strong { margin-top:26px; }
  .quote-copy, .estimator, .testimonial-main { padding:26px; }
  .choices { grid-template-columns:1fr; }
  .contact-form { grid-template-columns:1fr; }
  .form-field, .form-field.full, .form-submit, .form-note, .form-status { grid-column:1; }
}

/* ==========================================================================
   Illustration + interaction layer

   One visual language: wireframe line-art that resolves into finished UI —
   which is what this studio actually sells. One light system: surfaces pick up
   a soft lime glow that follows the pointer. Both degrade to nothing on touch
   devices and under prefers-reduced-motion.
   ========================================================================== */

@property --glow {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* ------------------------------------------------------- line-art figures -- */

.card-figure {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 126px;
  height: 126px;
  color: #dfe3ec;
  overflow: visible;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

.fx-line, .fx-accent, .fx-stroke-accent {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-dot { fill: currentColor; stroke: none; }
.fx-accent { stroke: var(--lime); fill: var(--lime); fill-opacity: .12; }
.fx-stroke-accent { stroke: var(--lime); stroke-width: 2.4; }

/* The wireframe draws itself in when the figure arrives, then the accent fills.
   Scoped to .js so the illustration is simply there when scripting is off. */
.js .card-figure .fx-line,
.js .card-figure .fx-accent,
.js .card-figure .fx-stroke-accent {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
}

.card-figure.in .fx-line,
.card-figure.in .fx-accent,
.card-figure.in .fx-stroke-accent {
  animation: fxDraw 1.15s cubic-bezier(.2,.7,.2,1) forwards;
}

.card-figure .fx-line:nth-of-type(2) { animation-delay: .08s; }
.card-figure .fx-line:nth-of-type(3) { animation-delay: .16s; }
.card-figure .fx-accent { animation-delay: .22s; }
.card-figure .fx-stroke-accent { animation-delay: .34s; }

@keyframes fxDraw { to { stroke-dashoffset: 0; } }

.service-card:hover .card-figure { transform: translateY(-5px); }
.service-card:hover .fx-accent { fill-opacity: .3; }
.service-card:hover .card-figure,
.service-row:hover .card-figure { color: #fff; }

/* On the services page the figure leads the column instead of floating. */
.service-row .card-figure {
  position: static;
  width: 92px;
  height: 92px;
  margin-bottom: 16px;
}

/* --------------------------------------------------------- pointer light -- */

.service-card {
  --glow: 0;
  background:
    radial-gradient(300px circle at var(--mx, 74%) var(--my, 14%), rgba(199, 255, 74, calc(.17 * var(--glow))), transparent 62%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    var(--bg-soft);
  transition: transform .28s ease, border-color .28s ease, --glow .4s ease;
}

.service-card:hover { --glow: 1; }

.tile {
  --glow: 0;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(199, 255, 74, calc(.13 * var(--glow))), transparent 62%),
    rgba(255,255,255,.035);
  transition: --glow .4s ease, border-color .25s ease, transform .25s ease;
}

.tile:hover { --glow: 1; border-color: rgba(199,255,74,.26); }
a.tile:hover { transform: translateY(-3px); }
a.tile h3 { color: #fff; }

/* ------------------------------------------------------------ card tilt -- */

.project { --tx: 0deg; --ty: 0deg; }

@media (hover: hover) and (pointer: fine) {
  .project:hover {
    transform: perspective(1100px) rotateX(var(--ty)) rotateY(var(--tx)) translateY(-6px);
  }
}

/* ------------------------------------------------------- hero parallax --- */

.hero-visual { --px: 0px; --py: 0px; }

.visual-shell {
  transform: rotateY(-8deg) rotateX(4deg) translate3d(var(--px), var(--py), 0);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

/* translate (not transform) so the float animation and parallax compose */
@keyframes cardFloat { to { translate: 0 -14px; } }
.float-one { transform: translate3d(calc(var(--px) * -1.7), calc(var(--py) * -1.7), 0); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.float-two { transform: translate3d(calc(var(--px) * 1.4), calc(var(--py) * 1.4), 0); transition: transform .45s cubic-bezier(.2,.7,.2,1); }

/* ------------------------------------------------------- scroll progress -- */

.scroll-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  pointer-events: none;
}

/* A hovered marquee stops, so the capability list is actually readable. */
.trust-strip:hover .marquee { animation-play-state: paused; }

/* ------------------------------------------------------- process rail ----- */

.process-list { position: relative; padding-left: 30px; }

.process-list::before,
.process-list::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  border-radius: 2px;
}

.process-list::before { bottom: 0; background: rgba(255,255,255,.1); }

.process-list::after {
  height: calc(var(--progress, 0) * 100%);
  background: linear-gradient(180deg, var(--lime), var(--cyan));
  box-shadow: 0 0 18px rgba(199,255,74,.45);
  transition: height .25s linear;
}

.process-step { position: relative; }

.process-step::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 42px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22);
  background: var(--bg);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.process-step.reached::before {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 0 5px rgba(199,255,74,.12);
}

/* ---------------------------------------------------------- price gauge -- */

.gauge {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 34px;
}

.gauge span {
  flex: 1;
  height: 40%;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  transition: height .3s cubic-bezier(.2,.7,.2,1), background .3s ease;
}

.gauge span.on { background: var(--lime); height: 100%; }
.gauge span.on:nth-child(even) { height: 78%; }

.gauge-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted-2);
}

/* -------------------------------------------------------- 404 wireframe -- */

.hero-figure {
  width: min(100%, 460px);
  margin-top: 44px;
  color: #cfd4de;
}

.hero-figure .fx-ghost {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 7 7;
  opacity: .5;
}

@media (max-width: 640px) {
  .card-figure { width: 96px; height: 96px; right: 16px; }
  .process-list { padding-left: 22px; }
  .process-step::before { left: -26px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-figure .fx-line,
  .card-figure .fx-accent,
  .card-figure .fx-stroke-accent { stroke-dashoffset: 0; animation: none; }
  .visual-shell, .float-one, .float-two { transform: none; }
  .visual-shell { transform: rotateY(-8deg) rotateX(4deg); }
  .process-list::after { transition: none; }
}

/* ------------------------------------------------------------- WhatsApp -- */

.chat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(199, 255, 74, .34);
  background: rgba(199, 255, 74, .08);
  color: var(--lime);
  font-size: .72rem;
  font-weight: 700;
  vertical-align: middle;
  margin: 0 7px 0 4px;
  transition: background .2s ease, color .2s ease;
}

.chat-link svg { width: 13px; height: 13px; }
.chat-link:hover { background: rgba(199, 255, 74, .2); color: #edffc4; }

.button .chat-icon { width: 18px; height: 18px; }
