/* ============================================================
   GRACEFULL CARE · V3 total redesign
   Dark-luxe care agency · Bricolage Grotesque + Figtree
   Animated: marquee, floating photo stack, count-up, reveals
   ============================================================ */

:root {
  --ink:        #190F2E;
  --ink-2:      #241740;
  --ink-3:      #2E1E52;
  --paper:      #FAF7F0;
  --paper-2:    #F1EBDF;
  --white:      #FFFFFF;
  --plum:       #6C46A8;
  --plum-soft:  #8B67C7;
  --teal:       #17A2BA;
  --green:      #7BC144;
  --lime:       #A8EC6E;
  --text-dark:  #2A2140;
  --text-mut:   #6E6584;
  --text-inv:   #C9BEE4;
  --line:       #E6DECE;
  --line-inv:   rgba(255, 255, 255, .12);

  --grad: linear-gradient(90deg, var(--green), var(--teal) 50%, var(--plum-soft));
  --font-d: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-b: "Figtree", "Segoe UI", sans-serif;
  --wrap: 1240px;
  --r: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
}

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.skip-link { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 0; top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-3px) }
.btn-lime {
  background: linear-gradient(120deg, var(--lime), var(--green));
  color: #17300A;
  box-shadow: 0 10px 30px rgba(123, 193, 68, .4);
}
.btn-ghost-l { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); background: transparent; }
.btn-ghost-l:hover { background: rgba(255,255,255,.1); }
.btn-ghost-d { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: transparent; }
.btn-ghost-d:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(25, 15, 46, .3); }

/* ---------- Header: floating glass pill ---------- */

.site-header {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 100;
  transition: transform .4s ease;
}
.site-header.hidden { transform: translateY(-130%); }
.site-header .bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 14px;
  margin-left: max(20px, calc((100% - var(--wrap)) / 2));
  margin-right: max(20px, calc((100% - var(--wrap)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 22px;
  background: rgba(25, 15, 46, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 14px 40px rgba(12, 6, 28, .35);
}
.brand { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: 6px 12px; }
.brand img { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: .98rem;
  color: #E4DCF6;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-links a[aria-current="page"] { background: var(--grad); color: #12240B; }

.nav-cta { white-space: nowrap; padding: 12px 22px; border-radius: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 25px; height: 3px; border-radius: 3px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 170px 0 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
.blob-1 { width: 560px; height: 560px; top: -180px; left: -140px; background: radial-gradient(circle, #6C46A8, transparent 65%); }
.blob-2 { width: 480px; height: 480px; top: 20%; right: -160px; background: radial-gradient(circle, #17A2BA, transparent 65%); animation-delay: -6s; }
.blob-3 { width: 420px; height: 420px; bottom: -140px; left: 32%; background: radial-gradient(circle, #7BC144, transparent 65%); animation-delay: -11s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, 50px) scale(1.15); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 60px;
  align-items: center;
  padding-bottom: 90px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(115%); animation: riseUp .9s cubic-bezier(.22, 1, .36, 1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes riseUp { to { transform: translateY(0); } }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede { color: var(--text-inv); font-size: 1.15rem; max-width: 33em; margin-bottom: 38px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 54px; flex-wrap: wrap; margin-top: 56px; }
.hstat strong {
  display: block;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
}
.hstat strong .plus { color: var(--lime); }
.hstat span { color: var(--text-inv); font-size: .9rem; font-weight: 600; }

/* floating photo stack */
.hero-stack { position: relative; height: 560px; }
.stack-card {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(8, 4, 20, .55);
  border: 4px solid rgba(255, 255, 255, .95);
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.sc-2 img { object-position: 82% center; }
.sc-1 { width: 62%; aspect-ratio: 4 / 5; top: 0; right: 6%; rotate: 4deg; z-index: 2; }
.sc-2 { width: 52%; aspect-ratio: 4 / 3.4; bottom: 4%; left: 0; rotate: -6deg; z-index: 3; animation-delay: -2.5s; }
.sc-3 { width: 42%; aspect-ratio: 1; bottom: 18%; right: 0; rotate: 8deg; z-index: 1; animation-delay: -5s; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}
.stack-badge {
  position: absolute;
  z-index: 4;
  top: 44%;
  left: 4%;
  background: linear-gradient(120deg, var(--lime), var(--green));
  color: #17300A;
  font-family: var(--font-d);
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(123, 193, 68, .45);
  animation: floaty 5s ease-in-out infinite;
  animation-delay: -1s;
}

/* ---------- Sections ---------- */

.sec { padding: 110px 0; position: relative; }
.sec-dark { background: var(--ink); color: #fff; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-paper2 { background: var(--paper-2); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; max-width: 14em; }
.sec-head p { color: var(--text-mut); max-width: 34em; font-size: 1.1rem; }
.sec-dark .sec-head p { color: var(--text-inv); }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Numbered service list ---------- */

.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.6fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  transition: background .3s ease, padding-left .3s ease;
}
.svc-row:hover { background: #fff; padding-left: 34px; }
.svc-num {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.9rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.svc-row h3 { font-size: 1.6rem; font-weight: 700; }
.svc-row p { color: var(--text-mut); font-size: 1rem; }
.svc-arrow {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-size: 1.3rem;
  transition: background .3s, color .3s, rotate .3s;
}
.svc-row:hover .svc-arrow { background: var(--ink); color: var(--lime); rotate: -45deg; }

.sec-dark .svc-list { border-color: var(--line-inv); }
.sec-dark .svc-row { border-color: var(--line-inv); }
.sec-dark .svc-row:hover { background: rgba(255, 255, 255, .05); }
.sec-dark .svc-row h3 { color: #fff; }
.sec-dark .svc-row p { color: var(--text-inv); }
.sec-dark .svc-arrow { border-color: rgba(255,255,255,.5); color: #fff; }
.sec-dark .svc-row:hover .svc-arrow { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ---------- Tilted gallery ---------- */

.tilt-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.tilt-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .95);
  box-shadow: 0 26px 60px rgba(8, 4, 20, .5);
  transition: rotate .45s ease, scale .45s ease;
}
.tilt-card:nth-child(1) { rotate: -3.5deg; }
.tilt-card:nth-child(2) { rotate: 2deg; translate: 0 22px; }
.tilt-card:nth-child(3) { rotate: 4deg; }
.tilt-card:hover { rotate: 0deg; scale: 1.04; z-index: 2; }
.tilt-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tilt-card img[src*="care-banner"] { object-position: 82% center; }
.tilt-card figcaption {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  background: rgba(25, 15, 46, .82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 18px;
  border-radius: 14px;
}

/* ---------- Bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 22px;
}
.b-tile {
  border-radius: var(--r);
  padding: 30px;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .3s ease, box-shadow .3s ease;
}
.b-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(42, 33, 64, .16); }
.b-tile h3 { font-size: 1.25rem; margin-top: 12px; }
.b-tile p { color: var(--text-mut); font-size: .95rem; }
.b-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: auto;
}
.bi-plum { background: #EFE7FB; color: var(--plum); }
.bi-teal { background: #DDF3F7; color: var(--teal); }
.bi-green { background: #E9F6DB; color: #4E8A21; }

.b-photo { grid-column: span 2; grid-row: span 2; padding: 0; border: 0; }
.b-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s ease; }
.b-photo:hover img { scale: 1.05; }

.b-grad {
  grid-column: span 2;
  background: var(--grad);
  color: #14240C;
  justify-content: center;
}
.b-grad h3 { color: #14240C; font-size: 1.7rem; }
.b-grad p { color: rgba(20, 36, 12, .8); font-weight: 600; }
.b-grad .btn { margin-top: 16px; align-self: flex-start; background: var(--ink); color: #fff; }

.b-big {
  background: var(--ink);
  color: #fff;
  justify-content: center;
  text-align: center;
}
.b-big strong { font-family: var(--font-d); font-size: 3rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-big span { color: var(--text-inv); font-weight: 600; font-size: .9rem; }

/* ---------- Steps timeline ---------- */

.steps-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 40px 30px 32px;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.step-pill:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(42, 33, 64, .14); }
.step-pill em {
  font-style: normal;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .14em;
  color: #fff;
  background: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  position: absolute;
  top: -18px;
  left: 26px;
}
.step-pill h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step-pill p { color: var(--text-mut); font-size: .98rem; }

/* ---------- Big CTA ---------- */

.mega-cta {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: var(--ink);
  padding: 90px 70px;
  text-align: center;
  color: #fff;
}
.mega-cta .blob { opacity: .4; }
.mega-cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; color: #fff; position: relative; }
.mega-cta p { color: var(--text-inv); font-size: 1.15rem; margin: 20px auto 44px; max-width: 36em; position: relative; }
.cta-phones { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; position: relative; }
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  transition: transform .25s;
}
.phone-pill:hover { transform: translateY(-3px) scale(1.03); }
.phone-pill .ring {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--lime), var(--green));
  display: flex; align-items: center; justify-content: center;
  color: #17300A;
}
.phone-pill .ring::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.cta-note { position: relative; margin-top: 26px; color: var(--text-inv); font-weight: 600; font-size: .95rem; }

/* ---------- Page hero (inner) ---------- */

.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 190px 0 90px;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 800; color: #fff; margin: 18px 0; }
.page-hero .lede { color: var(--text-inv); font-size: 1.15rem; max-width: 40em; }
.crumbs { font-weight: 700; font-size: .875rem; color: var(--text-inv); }
.crumbs a { color: var(--lime); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- About / story ---------- */

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.story-grid .stack-wrap { position: relative; height: 520px; }
.story-copy p { color: var(--text-mut); margin-bottom: 18px; }
.big-quote {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: -.01em;
  max-width: 26em;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}
.big-quote .grad-text { font-weight: 800; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 44px; align-items: start; }
.c-cards { display: grid; gap: 20px; }
.c-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform .3s, box-shadow .3s;
}
.c-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(42, 33, 64, .12); }
.c-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.c-card a { display: block; font-family: var(--font-d); font-weight: 800; font-size: 1.2rem; color: var(--plum); text-decoration: none; }
.c-card a:hover { color: var(--teal); }
.c-card p { color: var(--text-mut); font-size: .95rem; }

.form-panel {
  background: var(--ink);
  color: #fff;
  border-radius: 30px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.form-panel h2 { color: #fff; font-size: 1.9rem; margin-bottom: 10px; position: relative; }
.form-panel > p { color: var(--text-inv); margin-bottom: 30px; position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.ff { display: flex; flex-direction: column; gap: 8px; }
.ff.full { grid-column: 1 / -1; }
.ff label { font-weight: 700; font-size: .9rem; color: #E4DCF6; }
.ff input, .ff select, .ff textarea {
  font-family: var(--font-b);
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1.5px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.ff select option { color: var(--ink); }
.ff textarea { resize: vertical; min-height: 110px; }
.ff input::placeholder, .ff textarea::placeholder { color: rgba(228, 220, 246, .5); }
.ff input:focus, .ff select:focus, .ff textarea:focus { outline: none; border-color: var(--lime); background: rgba(255,255,255,.1); }
.form-note { grid-column: 1 / -1; font-size: .875rem; color: var(--text-inv); }
.form-note a { color: var(--lime); }
.form-success {
  display: none;
  grid-column: 1 / -1;
  background: rgba(168, 236, 110, .15);
  border: 2px solid var(--green);
  color: #D6F5B8;
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--text-inv); padding: 90px 0 0; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; position: relative; }
.footer-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 12px 18px; margin-bottom: 20px; }
.footer-logo img { height: 52px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; display: grid; gap: 12px; }
.site-footer a { color: var(--text-inv); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--lime); }
.site-footer p { font-size: .95rem; }
.footer-phone { font-family: var(--font-d); font-weight: 800; font-size: 1.15rem; color: #fff !important; }
.footer-mark {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: .9;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.footer-bottom { border-top: 1px solid var(--line-inv); padding: 22px 0; font-size: .875rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveals ---------- */

.rv { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.rv-left { opacity: 0; transform: translateX(-50px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.rv-scale { opacity: 0; transform: scale(.86); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.rv.visible, .rv-left.visible, .rv-scale.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv, .rv-left, .rv-scale { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-stack { max-width: 560px; margin: 0 auto; height: 480px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tilt-gallery { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 34px; }
  .story-grid { grid-template-columns: 1fr; gap: 54px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 60px 1fr auto; }
  .svc-row p { grid-column: 2 / 3; }
}

@media (max-width: 768px) {
  body { font-size: 1rem; }
  .site-header { top: 10px; }
  .site-header .bar { margin-left: 12px; margin-right: 12px; padding: 8px 12px; }
  .brand img { height: 34px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(25, 15, 46, .97);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    padding: 18px;
    display: none;
    box-shadow: 0 24px 60px rgba(12, 6, 28, .5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 18px; font-size: 1.05rem; }
  .nav-links .mobile-cta { margin-top: 10px; }

  .hero { padding-top: 120px; }
  .hero-grid { padding-bottom: 64px; }
  .hero-stats { gap: 28px 36px; margin-top: 40px; }
  .hstat strong { font-size: 2rem; }
  .hero-stack { height: 400px; }

  .sec { padding: 70px 0; }
  .sec-head { margin-bottom: 44px; }
  .svc-row { grid-template-columns: 44px 1fr; gap: 14px; padding: 26px 8px; }
  .svc-arrow { display: none; }
  .svc-num { font-size: 1.3rem; }
  .svc-row h3 { font-size: 1.25rem; }
  .svc-row:hover { padding-left: 8px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .b-tile { min-height: 180px; }
  .b-photo { grid-column: span 1; grid-row: span 1; min-height: 260px; }
  .b-grad { grid-column: span 1; }
  .steps-line { grid-template-columns: 1fr; gap: 34px; }
  .mega-cta { padding: 60px 26px; border-radius: 26px; }
  .form-panel { padding: 32px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero { padding: 140px 0 60px; }
}

@media (min-width: 769px) {
  .nav-links .mobile-cta { display: none; }
}

/* ============================================================
   V3.1 — Scroll-story upgrade
   Readable hero deck + scroll-driven spread + scrollytelling
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  background: var(--grad);
  z-index: 300;
  border-radius: 0 4px 4px 0;
}

/* Hero deck: corner-overlap only, every photo readable */
.sc-1 { width: 60%; aspect-ratio: 4 / 5;   top: 0;    right: 0;  left: auto; bottom: auto; rotate: 4deg; }
.sc-2 { width: 54%; aspect-ratio: 4 / 3.4; bottom: 8%; left: 0;  top: auto;  right: auto; rotate: -6deg; }
.sc-3 { width: 40%; aspect-ratio: 1;       bottom: 0;  right: 6%; top: auto;  left: auto; rotate: 7deg; }
.stack-badge { top: 30%; left: 0; }

/* Scrollytelling: pinned stage + step column */
.scrolly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}
.scrolly-stage {
  position: sticky;
  top: 110px;
  height: calc(100vh - 220px);
  min-height: 460px;
  display: flex;
  align-items: center;
}
.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.6;
  max-height: 100%;
  border-radius: 26px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .95);
  box-shadow: 0 34px 80px rgba(8, 4, 20, .6);
}
.stage-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.18;
  transition: opacity .65s ease, scale 1.2s cubic-bezier(.22, 1, .36, 1);
}
.stage-frame img.on { opacity: 1; scale: 1; }
.stage-tag {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  background: rgba(25, 15, 46, .82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 16px;
  transition: opacity .4s;
}
.stage-tag .grad-text { font-weight: 800; }
.stage-dots { position: absolute; top: 18px; right: 18px; display: flex; gap: 7px; }
.stage-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transition: background .3s, transform .3s;
}
.stage-dots i.on { background: var(--lime); transform: scale(1.35); }

.scrolly-steps { display: grid; }
.scrolly-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .22;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.scrolly-step.on { opacity: 1; transform: none; }
.step-no {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--lime);
  margin-bottom: 14px;
}
.scrolly-step h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.scrolly-step p { color: var(--text-inv); font-size: 1.08rem; max-width: 30em; }
.scrolly-step .mini-link {
  margin-top: 22px;
  font-family: var(--font-d);
  font-weight: 700;
  color: var(--lime);
  text-decoration: none;
}
.scrolly-step .mini-link:hover { text-decoration: underline; }

@media (max-width: 1080px) {
  .scrolly-grid { grid-template-columns: 1fr; gap: 0; }
  .scrolly-stage {
    top: 82px;
    height: 46vh;
    min-height: 300px;
    z-index: 5;
  }
  .scrolly-step { min-height: 56vh; text-align: left; }
}

/* ============================================================
   V3.2 — Stacking service cards (scroll stack)
   ============================================================ */

.stack-zone { position: relative; }

.svc-card {
  position: sticky;
  border-radius: 30px;
  overflow: hidden;
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  min-height: 430px;
  margin-bottom: 36px;
  box-shadow: 0 -14px 40px rgba(8, 4, 20, .18), 0 30px 60px rgba(8, 4, 20, .22);
  will-change: transform, filter;
  transform-origin: center top;
}
.svc-card:nth-child(1) { top: 96px; }
.svc-card:nth-child(2) { top: 110px; }
.svc-card:nth-child(3) { top: 124px; }
.svc-card:nth-child(4) { top: 138px; }
.svc-card:nth-child(5) { top: 152px; }
.svc-card:nth-child(6) { top: 166px; }

.num-big {
  position: absolute;
  top: 6px;
  right: 30px;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 8rem;
  line-height: 1;
  opacity: .1;
  pointer-events: none;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.svc-card h3 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; margin-bottom: 16px; }
.svc-card p { font-size: 1.06rem; max-width: 34em; }
.svc-card .mini-link {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-d);
  font-weight: 700;
  text-decoration: none;
}
.svc-card .mini-link:hover { text-decoration: underline; }

.card-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(8, 4, 20, .35);
  border: 4px solid rgba(255, 255, 255, .92);
}
.big-ic {
  width: 150px;
  height: 150px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  rotate: -6deg;
}

/* card themes */
.card-light { background: #fff; border: 1px solid var(--line); }
.card-light .card-tag { background: #EFE7FB; color: var(--plum); }
.card-light .mini-link { color: var(--teal); }
.card-light .num-big { color: var(--plum); }
.card-light .big-ic { background: #EFE7FB; color: var(--plum); }

.card-dark { background: var(--ink-2); }
.card-dark h3 { color: #fff; }
.card-dark p { color: var(--text-inv); }
.card-dark .card-tag { background: rgba(255, 255, 255, .12); color: var(--lime); }
.card-dark .mini-link { color: var(--lime); }
.card-dark .num-big { color: #fff; }
.card-dark .big-ic { background: rgba(255, 255, 255, .1); color: var(--lime); }

.card-grad { background: var(--grad); }
.card-grad h3 { color: #14240C; }
.card-grad p { color: rgba(20, 36, 12, .82); }
.card-grad .card-tag { background: rgba(20, 36, 12, .16); color: #14240C; }
.card-grad .mini-link { color: #14240C; }
.card-grad .num-big { color: #14240C; opacity: .14; }
.card-grad .big-ic { background: rgba(255, 255, 255, .5); color: #14240C; }

.card-plum { background: linear-gradient(135deg, #31205C, #48307E); }
.card-plum h3 { color: #fff; }
.card-plum p { color: var(--text-inv); }
.card-plum .card-tag { background: rgba(255, 255, 255, .12); color: var(--lime); }
.card-plum .mini-link { color: var(--lime); }
.card-plum .num-big { color: #fff; }
.card-plum .big-ic { background: rgba(255, 255, 255, .1); color: var(--lime); }

@media (max-width: 1080px) {
  .svc-card { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding: 44px; }
  .card-visual img { aspect-ratio: 16 / 9; }
  .big-ic { margin-left: 0; width: 110px; height: 110px; }
}
@media (max-width: 768px) {
  .svc-card { padding: 28px 22px; border-radius: 24px; margin-bottom: 24px; }
  .svc-card:nth-child(1) { top: 82px; }
  .svc-card:nth-child(2) { top: 92px; }
  .svc-card:nth-child(3) { top: 102px; }
  .svc-card:nth-child(4) { top: 112px; }
  .svc-card:nth-child(5) { top: 122px; }
  .svc-card:nth-child(6) { top: 132px; }
  .num-big { font-size: 4.6rem; right: 18px; }
  .big-ic { width: 84px; height: 84px; border-radius: 26px; }
}

/* ============================================================
   V3.3 — Mobile polish (all pages)
   ============================================================ */

.scrolly-stage { justify-content: center; }

@media (max-width: 768px) {
  /* type scale for phones */
  .hero h1 { font-size: 2.35rem; }
  .hero-lede { font-size: 1.02rem; }
  .page-hero h1 { font-size: 2.15rem; }
  .page-hero .lede { font-size: 1.02rem; }
  .sec-head h2 { font-size: 1.9rem; }
  .svc-card h3 { font-size: 1.55rem; }
  .scrolly-step h3 { font-size: 1.5rem; }
  .mega-cta h2 { font-size: 1.9rem; }
  .big-quote { font-size: 1.35rem; }
  .form-panel h2 { font-size: 1.55rem; }

  /* hero */
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .hero-stats { gap: 22px 30px; }
  .stack-badge { padding: 10px 16px; font-size: .9rem; }

  /* stacks & cards */
  .svc-card { gap: 22px; }
  .card-visual img { border-width: 3px; }
  .num-big { font-size: 3.8rem; top: 10px; }
  .card-tag { margin-bottom: 14px; }

  /* scrolly */
  .stage-tag { font-size: .9rem; padding: 11px 14px; left: 12px; right: 12px; bottom: 12px; }
  .scrolly-step p { font-size: .98rem; }

  /* CTA + contact */
  .cta-phones { flex-direction: column; align-items: stretch; }
  .phone-pill { justify-content: center; }
  .c-card { padding: 22px; }

  /* footer */
  .footer-logo img { height: 44px; }
  .footer-mark { font-size: 3.4rem; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 108px; }
  .hero h1 { font-size: 2.05rem; }
  .hero-stack { height: 320px; }
  .hstat strong { font-size: 1.7rem; }
  .hstat span { font-size: .8rem; }
  .svc-card { padding: 24px 18px; }
  .svc-card p { font-size: .95rem; }
  .big-ic { width: 72px; height: 72px; border-radius: 20px; }
  .big-ic svg { width: 40px; height: 40px; }
  .num-big { font-size: 3rem; right: 14px; }
  .scrolly-stage { height: 40vh; min-height: 250px; }
  .mega-cta { padding: 48px 20px; }
  .form-panel { padding: 26px 16px; }
  .footer-grid { gap: 28px; }
}

/* V3.3b — mobile fixes: kill horizontal overflow, scrolly collision */
html, body { overflow-x: clip; }

@media (max-width: 1080px) {
  .scrolly-step {
    justify-content: flex-end;
    padding-bottom: 7vh;
    min-height: 60vh;
  }
}
@media (max-width: 768px) {
  .blob { filter: blur(48px); }
  .blob-1, .blob-2, .blob-3 { width: 300px; height: 300px; }
}

/* V3.3c — hero stack collapsed to 0 width on mobile (auto margins + absolute children) */
@media (max-width: 1080px) {
  .hero-stack { width: 100%; }
}

/* V3.3d — mobile hero: even stats row + readable photo collage */
@media (max-width: 768px) {
  .hero-grid { gap: 44px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 34px;
  }
  .hstat strong { font-size: 1.55rem; }
  .hstat span { font-size: .72rem; line-height: 1.35; display: block; margin-top: 4px; }

  .hero-stack { height: 400px; }
  .sc-1 { width: 56%; top: 0; right: 0; bottom: auto; left: auto; rotate: 3deg; }
  .sc-2 { width: 54%; top: 35%; left: 0; right: auto; bottom: auto; rotate: -5deg; }
  .sc-3 { width: 38%; bottom: 0; right: 8%; top: auto; left: auto; rotate: 6deg; z-index: 3; }
  .stack-badge { top: 2px; left: 0; padding: 9px 15px; font-size: .85rem; }
}
@media (max-width: 480px) {
  .hero-stack { height: 350px; }
  .hstat strong { font-size: 1.4rem; }
}

/* ============================================================
   V3.4 — Mobile: icon-left tiles + refined scrolly story
   ============================================================ */

.step-card { background: transparent; }

@media (max-width: 768px) {
  /* bento tiles: icon left, text beside it */
  .b-tile {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    align-items: start;
    min-height: 0;
    padding: 22px 20px;
  }
  .b-icon {
    grid-row: 1 / span 2;
    margin-bottom: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .b-icon svg { width: 24px; height: 24px; }
  .b-tile h3 { grid-column: 2; margin-top: 0; font-size: 1.08rem; }
  .b-tile p { grid-column: 2; font-size: .92rem; }
  .b-photo { display: block; padding: 0; min-height: 230px; }
  .b-grad { display: flex; flex-direction: column; justify-content: center; }
  .b-big { display: flex; flex-direction: column; justify-content: center; }
  .b-big strong { font-size: 2.4rem; }
}

@media (max-width: 1080px) {
  /* scrolly: compact pinned stage + glass caption cards */
  .scrolly-stage {
    top: 78px;
    height: 34vh;
    min-height: 235px;
  }
  .stage-frame { aspect-ratio: 16 / 10.5; max-width: 480px; }
  .scrolly-step {
    min-height: 54vh;
    justify-content: flex-end;
    padding-bottom: 3vh;
  }
  .step-card {
    background: rgba(25, 15, 46, .78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    padding: 24px 22px;
    box-shadow: 0 20px 50px rgba(8, 4, 20, .4);
  }
  .scrolly-step h3 { font-size: 1.4rem; margin-bottom: 10px; }
  .scrolly-step p { font-size: .95rem; }
  .step-no { margin-bottom: 8px; font-size: .85rem; }
  .scrolly-step .mini-link { margin-top: 14px; }
}

/* V3.4b — mobile scrolly: hide inactive cards so image+caption swap as one */
@media (max-width: 1080px) {
  .scrolly-step { opacity: 0; transform: translateY(24px); }
  .scrolly-step.on { opacity: 1; transform: none; }
}

/* V3.4c — mobile: caption card layers above the pinned photo */
@media (max-width: 1080px) {
  .scrolly-steps { position: relative; z-index: 6; }
}

/* ============================================================
   V3.5 — Revision: YouTube video section + new client photos
   ============================================================ */

.video-frame {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .95);
  box-shadow: 0 34px 80px rgba(8, 4, 20, .6);
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA cutout figure (desktop only) */
.cta-figure {
  position: absolute;
  right: 10px;
  bottom: 0;
  height: 108%;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 24px 44px rgba(8, 4, 20, .55));
  display: none;
}
@media (min-width: 1200px) {
  .cta-figure { display: block; }
  .mega-cta { text-align: left; padding: 90px 400px 90px 70px; }
  .mega-cta p { margin-left: 0; }
  .cta-phones { justify-content: flex-start; }
  .cta-note { text-align: left; }
}

/* V3.5b — local (file://) video fallback */
.video-fallback { position: absolute; inset: 0; display: block; }
.video-fallback img { width: 100%; height: 100%; object-fit: cover; }
.video-fallback .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--lime), var(--green));
  color: #17300A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(123, 193, 68, .5);
  transition: transform .25s ease;
}
.video-fallback:hover .play-btn { transform: translate(-50%, -50%) scale(1.12); }

/* V3.5c — ambient video: no interaction, no hover chrome */
.video-frame iframe { pointer-events: none; }

/* V3.5d — stats: keep number + suffix on one line, align labels */
.hstat strong { white-space: nowrap; }
.hstat { min-width: 0; }
@media (max-width: 768px) {
  .hstat strong { margin-bottom: 2px; }
  .hstat span { line-height: 1.3; }
}

/* V3.5e — FIX: label styles were bleeding into the number spans inside <strong>,
   shrinking "100%" / "6+" and stacking them. Restore them to full size, inline. */
.hstat strong span {
  display: inline !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  color: inherit;
}
.hstat strong .plus { color: var(--lime); }

/* V3.5f — consistent stat accents + comfortable spacing (all widths) */
.hstat strong .plus { color: var(--lime) !important; }
.hero-stats { margin-top: 62px; }
.hstat > span { display: block; margin-top: 7px; }
@media (max-width: 768px) {
  .hero-stats { margin-top: 42px; }
  .hstat > span { margin-top: 6px; }
}

/* V3.5f — cutout on ALL CTA panels, fitted with a top gap, mobile included */
.cta-figure {
  display: block;
  position: static;
  height: 230px;
  width: auto;
  margin: 28px auto -90px;
}
@media (max-width: 768px) {
  .cta-figure { height: 200px; margin-bottom: -60px; }
}
@media (max-width: 480px) {
  .cta-figure { height: 180px; margin-bottom: -48px; }
}
@media (min-width: 1200px) {
  .cta-figure {
    position: absolute;
    right: 26px;
    bottom: 0;
    height: 93%;
    margin: 0;
  }
}

/* V3.5g — video sound toggle */
.sound-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(25, 15, 46, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .9rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.sound-btn:hover { transform: scale(1.05); }
.sound-btn.sound-on {
  background: linear-gradient(120deg, var(--lime), var(--green));
  color: #17300A;
  border-color: transparent;
}
