/* ============================================================================
   3RDEYE DETAILS — stylesheet
   Bright & clean. Teal + blue on warm white. Newsreader display / Manrope body.
   ========================================================================== */

:root {
  /* palette */
  --white: #ffffff;
  --paper: #f6f9fb;          /* warm-white page ground */
  --mist: #e9f0f4;           /* section tint */
  --line: #d9e3ea;
  --silver: #b9c7d2;
  --ink: #0b1f33;            /* navy text */
  --ink-2: #33475b;
  --muted: #5f7385;
  --teal: #0e7c86;
  --teal-deep: #0a5560;
  --teal-soft: #d6eef0;
  --blue: #1f6bff;           /* logo blue */
  --blue-deep: #0d3fa8;
  --navy: #08172a;
  --gold: #e6b84a;           /* star rating only */

  /* type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* layout */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08), 0 1px 2px rgba(11, 31, 51, 0.06);
  --shadow-lg: 0 30px 60px rgba(11, 31, 51, 0.14), 0 2px 6px rgba(11, 31, 51, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section-pad { padding-block: var(--section); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
h2 em, h1 em { font-style: italic; color: var(--teal); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem;
  border: 2px solid var(--ink); transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(14,124,134,.25); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.02rem; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--gutter);
  background: rgba(246, 249, 251, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11,31,51,.06); padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 2px 8px rgba(11,31,51,.18); }
.brand-name { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand-name b { color: var(--blue); font-weight: 600; }
.brand-sub { display: block; font-family: var(--body); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .93rem; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links .btn { padding: .7rem 1.25rem; font-size: .88rem; background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(31,107,255,.28); }
.nav-links .btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; box-shadow: 0 10px 22px rgba(31,107,255,.35); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(31,107,255,.55), transparent 60%),
              radial-gradient(900px 700px at -10% 110%, rgba(14,124,134,.65), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, #0c2a3f 55%, var(--teal-deep) 100%);
  color: #fff;
  min-height: min(92vh, 860px);
  display: grid; align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}
/* sweeping arcs echoing the logo's chrome swooshes */
.hero-arcs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-arcs span {
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.12);
  width: 140vmax; height: 140vmax; left: 50%; top: 25%; transform: translate(-50%, 0);
}
.hero-arcs span:nth-child(2) { width: 120vmax; height: 120vmax; top: 32%; border-color: rgba(120,190,255,.16); }
.hero-arcs span:nth-child(3) { width: 100vmax; height: 100vmax; top: 40%; border-color: rgba(255,255,255,.08); }
.hero-arcs span:nth-child(4) { width: 80vmax; height: 80vmax; top: 48%; border-color: rgba(31,107,255,.22); }
/* soft sheen highlight */
.hero-sheen { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%); pointer-events: none; }
/* subtle grain */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) .6px, transparent .6px); background-size: 3px 3px; }

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero .eyebrow { color: #9fe3ea; }
.hero .eyebrow::before { background: #9fe3ea; }
.hero h1 { color: #fff; margin: 1.1rem 0 1.25rem; max-width: 14ch; }
.hero h1 em { color: #9fe3ea; }
.hero-tag { font-size: 1.2rem; color: rgba(255,255,255,.82); max-width: 50ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-top: 2.25rem; padding: .7rem 1.1rem .7rem .8rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  backdrop-filter: blur(6px); color: #fff; font-size: .9rem;
}
.hero-badge .stars { color: var(--gold); letter-spacing: .08em; font-size: .95rem; }
.hero-badge b { font-weight: 800; }
.hero-badge .g { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: #4285f4; font-family: var(--body); font-size: .95rem; }

.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo .ring { position: absolute; inset: -6%; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); animation: spin 60s linear infinite; }
.hero-logo .ring::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #9fe3ea; top: 6%; left: 50%; box-shadow: 0 0 18px #9fe3ea; }
.hero-logo .ring-2 { inset: -14%; border-color: rgba(31,107,255,.28); animation-duration: 90s; animation-direction: reverse; }
.hero-logo .ring-2::before { background: var(--blue); box-shadow: 0 0 18px var(--blue); width: 7px; height: 7px; }
.hero-logo img {
  width: min(100%, 420px); border-radius: 50%;
  box-shadow: 0 40px 80px rgba(0,0,0,.45), 0 0 0 10px rgba(255,255,255,.06);
  animation: float 8s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-strip { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: rgba(255,255,255,.7); }
.hero-strip b { color: #fff; font-weight: 700; }

/* ---------------------------------------------------------- reveal fx */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
.reduce-motion .reveal { opacity: 1; transform: none; transition: none; }
.reduce-motion .hero-logo img, .reduce-motion .hero-logo .ring { animation: none; }

/* -------------------------------------------------------------- services */
.services { background: var(--white); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { margin-top: .9rem; }
.section-head .lede { margin-top: 1rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.svc {
  position: relative; padding: 1.8rem 1.6rem 1.7rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc .ic svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.svc p { color: var(--muted); font-size: .98rem; margin: 0; }
.svc .n { position: absolute; top: 1.3rem; right: 1.4rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--silver); }
.svc-note { margin-top: 1.6rem; color: var(--muted); font-size: .95rem; display: flex; gap: .6rem; align-items: flex-start; }

/* --------------------------------------------------------- before/after */
.work { background: var(--mist); }
.ba-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1.6rem; }
.ba-card-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.5rem 1.7rem .4rem; }
.ba-card-head h3 { font-size: 1.5rem; }
.ba-card-head p { color: var(--muted); margin: .35rem 0 0; font-size: .95rem; }
.ba-legend { display: flex; gap: 1.2rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ba-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; vertical-align: 1px; }
.ba-legend .b i { background: #c0392b; } .ba-legend .a i { background: var(--teal); }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 1.7rem 1.7rem; }
.ba-grid.single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.ba-grid.single .ba { aspect-ratio: 4 / 5; }

/* drag-to-reveal slider */
.ba {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; user-select: none; touch-action: pan-y;
  background: var(--ink); cursor: ew-resize;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.ba .handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.ba .tag { position: absolute; top: 12px; padding: .35rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; pointer-events: none; }
.ba .tag.b { left: 12px; background: rgba(192,57,43,.92); }
.ba .tag.a { right: 12px; background: rgba(14,124,134,.94); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.ba-caption { font-size: .88rem; color: var(--muted); margin-top: .6rem; }

/* portfolio strip */
.portfolio { margin-top: clamp(2.5rem, 5vw, 4rem); }
.portfolio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; }
.portfolio-head h3 { font-size: 1.7rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pf { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.pf img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pf:hover img { transform: scale(1.05); }
.pf figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .9rem;
  background: linear-gradient(to top, rgba(8,23,42,.85), transparent); color: #fff;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* -------------------------------------------------------------- why */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why-points { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.why-point { display: flex; gap: 1rem; align-items: flex-start; }
.why-point .ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; }
.why-point .ic svg { width: 20px; height: 20px; }
.why-point h4 { font-family: var(--body); font-size: 1.02rem; font-weight: 800; color: var(--ink); margin-bottom: .2rem; }
.why-point p { color: var(--muted); margin: 0; font-size: .97rem; }

.trust-card {
  background: linear-gradient(160deg, var(--navy), var(--teal-deep)); color: #fff;
  border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.trust-card::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); right: -120px; top: -160px; }
.trust-rating { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.trust-rating .num { font-family: var(--display); font-size: 4rem; line-height: 1; font-weight: 500; }
.trust-rating .stars { color: var(--gold); font-size: 1.3rem; letter-spacing: .1em; }
.trust-rating small { display: block; color: rgba(255,255,255,.7); font-size: .85rem; margin-top: .2rem; }
.trust-card p { color: rgba(255,255,255,.82); }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); font-size: .82rem; font-weight: 700; }
.badge svg { width: 15px; height: 15px; color: #9fe3ea; }
.trust-card .btn-light { margin-top: 1.6rem; }
.review-slot { margin-top: 1.4rem; padding: 1rem 1.1rem; border: 1px dashed rgba(255,255,255,.3); border-radius: 12px; font-size: .86rem; color: rgba(255,255,255,.7); }

/* --------------------------------------------------------------- faq */
.faq { background: var(--mist); }
.faq-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-side p { color: var(--muted); margin-top: 1rem; max-width: 34ch; }
.faq-list { display: grid; gap: .7rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; font-family: var(--display); font-size: 1.2rem; color: var(--ink); font-weight: 500;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .pm { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, transform .3s var(--ease); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--ink); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.faq-q .pm::before { width: 12px; height: 2px; } .faq-q .pm::after { width: 2px; height: 12px; }
.faq-item[open] .faq-q .pm { background: var(--teal); border-color: var(--teal); transform: rotate(45deg); }
.faq-item[open] .faq-q .pm::before, .faq-item[open] .faq-q .pm::after { background: #fff; }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .98rem; }
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: .6rem; }
.faq-cat { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 1.2rem 0 .5rem; }
.faq-cat:first-child { margin-top: 0; }

/* ----------------------------------------------------------- estimate */
.estimate { background: var(--mist); }
.est-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.est-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }
.est-step { margin-bottom: 1.5rem; }
.est-step:last-child { margin-bottom: 0; }
.est-label { display: flex; align-items: baseline; gap: .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: .7rem; }
.est-label .k { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .7rem; display: inline-grid; place-items: center; letter-spacing: 0; }
.est-label small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: .82rem; }
.pills { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .8rem .4rem .7rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-size: .8rem; font-weight: 700; color: var(--ink-2); text-align: center;
  transition: border-color .2s, background .2s, transform .3s var(--ease), box-shadow .2s;
}
.pill svg { width: 26px; height: 26px; color: var(--teal-deep); }
.pill input:hover + span { border-color: var(--silver); }
.pill input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(14,124,134,.15); }
.pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: .6rem 1.4rem; font-size: .9rem; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .86rem; font-weight: 700; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s; }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--silver); background: #fff; }
.chip input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-deep); }
.chip input:checked + span::before { background: var(--teal); border-color: var(--teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); background-size: 10px; background-position: center; background-repeat: no-repeat; }
.est-ymm { display: grid; grid-template-columns: 1fr; }
.est-ymm input { width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); font: inherit; color: var(--ink); }
.est-ymm input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }

.est-result { position: sticky; top: 96px; background: linear-gradient(160deg, var(--navy), var(--teal-deep)); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); overflow: hidden; }
.est-result::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); right: -120px; top: -150px; }
.est-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9fe3ea; }
.est-price { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.05; margin: .5rem 0 .3rem; font-weight: 500; }
.est-price small { font-family: var(--body); font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.7); margin-left: .3rem; }
.est-sub { color: rgba(255,255,255,.75); font-size: .95rem; margin-bottom: 1.2rem; }
.est-lines { display: grid; gap: .5rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); font-size: .92rem; }
.est-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.est-lines li span:last-child { font-weight: 700; white-space: nowrap; color: #9fe3ea; }
.est-lines li.muted span:last-child { color: rgba(255,255,255,.6); font-weight: 600; }
.est-note { font-size: .82rem; color: rgba(255,255,255,.65); margin: 1rem 0 0; }
.est-result .btn-light { margin-top: 1.2rem; width: 100%; justify-content: center; }
.est-result.is-custom .est-price { font-size: clamp(1.7rem, 3vw, 2.4rem); }
/* mobile-only step controls; hidden on desktop where form and result sit side by side */
.est-show, .est-back { display: none; }

/* compact FAQ (below contact) */
.faq.compact { padding-block: clamp(2.5rem, 5vw, 4rem); }
.faq.compact .faq-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.2rem; }
.faq.compact .faq-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: .5rem; }
.faq.compact .faq-head p { color: var(--muted); font-size: .92rem; margin: 0; }
.faq.compact .faq-list { grid-template-columns: 1fr 1fr; gap: .5rem .9rem; align-items: start; }
.faq.compact .faq-item { border-radius: 10px; }
.faq.compact .faq-q { font-size: 1rem; padding: .75rem .9rem; }
.faq.compact .faq-q .pm { flex-basis: 24px; width: 24px; height: 24px; }
.faq.compact .faq-q .pm::before { width: 10px; } .faq.compact .faq-q .pm::after { height: 10px; }
.faq.compact .faq-a { font-size: .9rem; padding: 0 .9rem .85rem; }

/* ------------------------------------------------------------ contact */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.ci { display: flex; gap: 1rem; align-items: flex-start; }
.ci .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; }
.ci .ic svg { width: 20px; height: 20px; }
.ci b { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.ci a, .ci span { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.ci a:hover { color: var(--teal); }
.socials { display: flex; gap: .7rem; margin-top: 1.8rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.4rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff;
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { display: none; font-size: .8rem; color: #b3261e; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.form-foot small { color: var(--muted); font-size: .82rem; max-width: 34ch; }
.form-ok { display: none; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; }
.form-ok.show { display: block; }

/* ------------------------------------------------------------ footer */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand { color: #fff; }
.footer .brand-sub { color: rgba(255,255,255,.55); }
.footer-about { margin-top: 1.1rem; font-size: .95rem; max-width: 36ch; }
.footer h4 { font-family: var(--body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer li { margin-bottom: .55rem; font-size: .95rem; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #9fe3ea; }
.footer address { font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .84rem; color: rgba(255,255,255,.5); }

.demo-ribbon { position: fixed; right: -44px; bottom: 34px; transform: rotate(-45deg); background: var(--blue); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: .4rem 3.4rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 40; pointer-events: none; }

/* ------------------------------------------- desktop-only compaction */
/* Services and Our Work fit more on one screen. Mobile (<=860px) never sees these. */
@media (min-width: 861px) {
  .services, .work { padding-block: clamp(2.8rem, 4.5vw, 3.8rem); }
  .services .section-head, .work .section-head {
    max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; column-gap: 2.5rem; row-gap: 0; margin-bottom: 1.5rem;
  }
  .services .section-head .eyebrow, .work .section-head .eyebrow { grid-column: 1; grid-row: 1; align-self: start; }
  .services .section-head h2, .work .section-head h2 { grid-column: 1; grid-row: 2; margin-top: .6rem; }
  .services .section-head .lede, .work .section-head .lede { grid-column: 2; grid-row: 1 / 3; align-self: end; margin: 0; font-size: 1.05rem; }

  .services-grid { gap: .85rem; }
  .svc { padding: 1.2rem 1.15rem 1.1rem; border-radius: 14px; }
  .svc .ic { width: 38px; height: 38px; margin-bottom: .7rem; border-radius: 10px; }
  .svc .ic svg { width: 20px; height: 20px; }
  .svc h3 { font-size: 1.1rem; margin-bottom: .3rem; }
  .svc p { font-size: .88rem; line-height: 1.5; }
  .svc .n { top: 1rem; right: 1.1rem; }
  .svc-note { margin-top: 1rem; font-size: .88rem; }

  .ba-card { margin-bottom: 1rem; }
  .ba-card-head { padding: 1.1rem 1.3rem .2rem; }
  .ba-card-head h3 { font-size: 1.3rem; }
  .ba-card-head p { font-size: .9rem; margin-top: .2rem; }
  .ba-grid { grid-template-columns: repeat(4, 1fr); gap: .8rem; padding: .8rem 1.3rem 1.1rem; }
  .ba-caption { margin-top: .45rem; font-size: .82rem; }

  /* second card: same layout as the first (title on top, slider centered below), just a smaller slider */
  .ba-card--side .ba-grid.single { grid-template-columns: minmax(0, 440px); justify-content: center; }

  .portfolio { margin-top: 1.6rem; }
  .portfolio-head { margin-bottom: 1rem; }
  .portfolio-head h3 { font-size: 1.4rem; }
  .pf { aspect-ratio: 1 / 1; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: .5rem var(--gutter) 1rem; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .nav-links a { padding: .85rem 0; border-bottom: 0; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: .8rem; justify-content: center; border-bottom: 0; }
  body.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(60%, 260px); }
  .hero-logo .ring, .hero-logo .ring-2 { display: none; }
  .why-grid, .faq-grid, .contact-grid, .est-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .est-result { position: relative; top: auto; }
  /* two-step estimator: form first, then the result takes its place */
  .est-show { display: flex; width: 100%; justify-content: center; margin-top: 1.4rem; }
  .est-back {
    display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; padding: .45rem .8rem .45rem .6rem;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff;
    font-size: .82rem; font-weight: 700; min-height: 40px;
  }
  .est-back:hover { background: rgba(255,255,255,.16); }
  .est-grid:not([data-view="result"]) .est-result { display: none; }
  .est-grid[data-view="result"] .est-form { display: none; }
  .est-grid[data-view="result"] .est-result { display: block; opacity: 1; transform: none; }
  .faq.compact .faq-list { grid-template-columns: 1fr; }
  .ba-card-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .svc { padding: 1.3rem 1.1rem; }
  .svc h3 { font-size: 1.1rem; }
  .svc p { font-size: .9rem; }
  .ba-grid { padding: .8rem 1rem 1.2rem; gap: .7rem; }
  .ba .handle::after { width: 38px; height: 38px; }
  .portfolio-grid { gap: .7rem; }
  .form-row { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .hero-strip { gap: .8rem 1.4rem; }
  /* keep 2-up on mobile: trust points and before/after pairs never collapse to a single stack */
  .why-points { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .why-point { flex-direction: column; gap: .5rem; }
  .why-point .ic { flex-basis: auto; }
  .ba .tag { font-size: .6rem; padding: .28rem .5rem; }
  .ba-caption { font-size: .8rem; }
  .ba-card-head { padding: 1.2rem 1rem .2rem; }
  .ba-card-head h3 { font-size: 1.25rem; }
  .pf figcaption { font-size: .7rem; padding: 1.4rem .6rem .6rem; }

  /* ---- mobile-only compaction: less scrolling, same content ---- */
  :root { --section: 2.6rem; --gutter: 1.1rem; }
  h2 { font-size: 1.7rem; }
  .lede { font-size: 1rem; }
  .section-head { margin-bottom: 1.3rem; }
  .section-head .lede { margin-top: .5rem; }
  .hero { padding-block: 2rem 1.6rem; }
  .hero-inner { gap: 1.1rem; }
  .hero-logo img { width: 130px; box-shadow: 0 16px 36px rgba(0,0,0,.4), 0 0 0 5px rgba(255,255,255,.06); }
  .hero h1 { font-size: 2.1rem; margin: .6rem 0 .7rem; }
  .hero-tag { font-size: .98rem; margin-bottom: 1.1rem; }
  .hero-cta { gap: .6rem; }
  .hero-cta .btn-lg { padding: .85rem 1.3rem; font-size: .92rem; }
  .hero-badge { margin-top: 1.1rem; padding: .5rem .9rem .5rem .6rem; font-size: .82rem; }
  .hero-strip { margin-top: 1.4rem; padding-top: 1rem; gap: .4rem 1rem; font-size: .78rem; }
  .services-grid { gap: .6rem; }
  .svc { padding: 1rem .9rem; }
  .svc .ic { width: 36px; height: 36px; margin-bottom: .6rem; border-radius: 9px; }
  .svc .ic svg { width: 19px; height: 19px; }
  .svc h3 { font-size: 1rem; margin-bottom: .3rem; }
  .svc p { font-size: .82rem; line-height: 1.45; }
  .svc .n { top: .8rem; right: .9rem; }
  .svc-note { margin-top: 1rem; font-size: .84rem; }
  .ba-card { margin-bottom: .9rem; border-radius: 14px; }
  .ba-card-head { padding: .9rem .8rem .1rem; }
  .ba-card-head h3 { font-size: 1.1rem; }
  .ba-card-head p { font-size: .84rem; margin-top: .2rem; }
  .ba-legend { display: none; }
  .ba-grid { padding: .6rem .8rem .9rem; gap: .6rem; }
  .ba-grid.single .ba { aspect-ratio: 3 / 4; }
  .ba-caption { margin-top: .35rem; font-size: .74rem; }
  .portfolio { margin-top: 1.4rem; }
  .portfolio-head { margin-bottom: .8rem; }
  .portfolio-head h3 { font-size: 1.2rem; }
  .why-grid { gap: 1.2rem; }
  .why-points { margin-top: 1rem; gap: .7rem; }
  .why-point .ic { width: 32px; height: 32px; }
  .why-point .ic svg { width: 16px; height: 16px; }
  .why-point h4 { font-size: .92rem; }
  .why-point p { font-size: .84rem; line-height: 1.45; }
  .trust-card { padding: 1.3rem; border-radius: 14px; }
  .trust-rating { margin-bottom: .7rem; }
  .trust-rating .num { font-size: 2.8rem; }
  .trust-card p { font-size: .92rem; }
  .badges { margin-top: .9rem; }
  .badge { padding: .4rem .7rem; font-size: .76rem; }
  .trust-card .btn-light { margin-top: 1rem; }
  .review-slot { margin-top: .9rem; padding: .7rem .8rem; font-size: .78rem; }
  .est-grid { gap: .9rem; }
  .est-form { padding: 1rem; border-radius: 14px; }
  .est-step { margin-bottom: 1rem; }
  .est-label { margin-bottom: .5rem; font-size: .74rem; }
  .pills { grid-template-columns: repeat(5, 1fr); gap: .35rem; }
  .pill span { padding: .55rem .2rem .5rem; font-size: .66rem; gap: .25rem; border-radius: 9px; }
  .pill svg { width: 20px; height: 20px; }
  .seg span { padding: .5rem 1.2rem; font-size: .84rem; min-height: 44px; display: flex; align-items: center; }
  .chip span { padding: .45rem .75rem; font-size: .8rem; min-height: 44px; }
  .est-ymm input { padding: .65rem .85rem; font-size: .95rem; }
  .est-result { padding: 1.2rem; border-radius: 14px; }
  .est-price { font-size: 2.1rem; margin: .3rem 0 .2rem; }
  .est-sub { font-size: .88rem; margin-bottom: .8rem; }
  .est-lines { padding: .7rem 0; font-size: .86rem; gap: .35rem; }
  .est-note { font-size: .76rem; margin-top: .7rem; }
  .est-result .btn-light { margin-top: .9rem; }
  .contact-grid { gap: 1.2rem; }
  .contact .lede { margin-top: .5rem; }
  .contact-info { margin-top: 1rem; gap: .7rem; }
  .ci .ic { flex-basis: 38px; width: 38px; height: 38px; border-radius: 10px; }
  .ci .ic svg { width: 17px; height: 17px; }
  .ci b { font-size: .7rem; margin-bottom: .05rem; }
  .ci a, .ci span { font-size: .95rem; }
  .socials { margin-top: 1rem; }
  .form-card { padding: 1rem; border-radius: 14px; }
  .field { margin-bottom: .7rem; gap: .3rem; }
  .field label { font-size: .72rem; }
  .field input, .field select, .field textarea { padding: .7rem .85rem; font-size: .95rem; }
  .field textarea { min-height: 96px; }
  .form-foot { margin-top: .2rem; gap: .6rem; }
  .form-foot .btn-lg { padding: .85rem 1.3rem; font-size: .92rem; }
  .form-foot small { font-size: .76rem; }
  .faq.compact { padding-block: 1.8rem; }
  .faq.compact .faq-head { flex-direction: column; align-items: flex-start; gap: .3rem; margin-bottom: .8rem; }
  .faq.compact .faq-head h2 { font-size: 1.35rem; }
  .faq.compact .faq-list { gap: .4rem; }
  .faq.compact .faq-q { font-size: .92rem; padding: .65rem .8rem; }
  .faq.compact .faq-a { font-size: .84rem; padding: 0 .8rem .7rem; }
  .faq-cat { margin: .7rem 0 .3rem; font-size: .68rem; }
  .footer { padding: 2rem 0 1.2rem; }
  .footer-top { gap: 1.2rem 1rem; padding-bottom: 1.3rem; }
  .footer-about { margin-top: .7rem; font-size: .86rem; }
  .footer h4 { margin-bottom: .6rem; font-size: .7rem; }
  .footer li { margin-bottom: .35rem; font-size: .88rem; }
  .footer-bottom { padding-top: 1rem; font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
