/* ==========================================================================
   Myrtle Commerce - shared site styles (v2 design language)
   Brand: Sunset Serial (display) + Roboto (body), teal leads, orange accent.
   Radius system: pills for every interactive control, 32px shells / 26px cores
   for cards, arches for hero + "who" media.
   ========================================================================== */

@font-face { font-family: "Sunset Serial"; src: url("../fonts/SunsetSerial-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sunset Serial"; src: url("../fonts/SunsetSerial-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sunset Serial"; src: url("../fonts/SunsetSerial-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --teal: #0D636E;
  --teal-deep: #0A4D56;
  --teal-night: #083C43;
  --orange: #F97849;
  --orange-hi: #FF8D63;
  --ink: #121A21;
  --white: #FFFEFD;
  --lavender: #B69FFA;
  --aqua: #57D6D5;
  --pink: #FF836C;
  --yellow: #FFCD4E;
  --slate: #3A444C;
  --mist: #F0F3F5;
  --logo-teal: #2D7C87;

  --aqua-soft: #E4F7F6;
  --lavender-soft: #F0EBFE;
  --yellow-soft: #FFF5DB;
  --pink-soft: #FFEDE9;
  --hair: rgba(18, 26, 33, .1);
  --hair-light: rgba(255, 254, 253, .16);

  --display: "Sunset Serial", Georgia, serif;
  --body: "Roboto", system-ui, sans-serif;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 12vw, 176px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--white); color: var(--slate); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--ink); letter-spacing: -.015em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Film grain - fixed, non-interactive, so it never repaints with scroll */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.d-hero { font-size: clamp(46px, 5.3vw, 80px); line-height: .98; letter-spacing: -.035em; font-weight: 300; }
.d-xl { font-size: clamp(40px, 4.7vw, 70px); line-height: 1; letter-spacing: -.03em; font-weight: 300; }
.d-l { font-size: clamp(36px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -.025em; font-weight: 300; }
.lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.65; font-weight: 300; color: var(--slate); }
.tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--hair); background: rgba(255, 254, 253, .7);
  font: 500 11.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal);
}
.tag img { width: 18px; height: 18px; }
.on-dark .tag { border-color: var(--hair-light); background: rgba(255, 254, 253, .06); color: var(--aqua); }

/* Orange underline that draws in under a key phrase (.mark-u inside a revealed heading) */
.mark-u { background: linear-gradient(var(--orange), var(--orange)) 0 92% / 0% .09em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.6s var(--ease) .5s; }
.is-in .mark-u, .reduced .mark-u { background-size: 100% .09em; }

/* Word mask reveal (JS wraps words in .w > span) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-split] .w > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi) * 45ms + var(--d, 0ms)); }
  .js [data-split].is-in .w > span { transform: none; }
}

/* Generic reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .rv.is-in { opacity: 1; transform: none; filter: none; }
}

/* ---------- Buttons: pill + nested icon island ---------- */
.btn {
  --bg: var(--orange); --fg: var(--ink); --ib: var(--ink); --if: var(--white);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 26px; min-height: 60px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); cursor: pointer; white-space: nowrap;
  font: 500 16px/1 var(--body); letter-spacing: .01em; isolation: isolate; overflow: hidden;
  transition: transform .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--orange-hi); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn .island { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ib); transition: transform .6s var(--ease); }
.btn .island img { width: 20px; height: 20px; transition: transform .6s var(--ease); }
.btn:hover .island { transform: scale(1.06); }
.btn:hover .island img { transform: translateX(2px) rotate(-45deg); }
.btn--teal { --bg: var(--teal); --fg: var(--white); --ib: var(--white); }
.btn--teal::before { background: var(--teal-deep); }
.btn--white { --bg: var(--white); --fg: var(--teal); --ib: var(--teal); }
.btn--white::before { background: var(--yellow); }
.btn--white:hover { --fg: var(--ink); }
.btn--sm { min-height: 48px; padding: 5px 5px 5px 20px; font-size: 14.5px; gap: 12px; }
.btn--sm .island { width: 38px; height: 38px; }
.btn--sm .island img { width: 18px; height: 18px; }

.ulink { position: relative; display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; font-weight: 500; font-size: 15.5px; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.ulink:hover::after { transform: scaleX(0); }
.ulink img { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.ulink:hover img { transform: translateX(4px); }

/* Magnetic wrapper (JS sets --tx/--ty) */
.magnetic { transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform .6s var(--ease); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--teal); transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0); }
.preloader img { width: 92px; opacity: 0; transform: translateY(20px) scale(.85); animation: preMark 1s var(--ease) .1s forwards; }
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader.is-gone { display: none; }
@keyframes preMark { to { opacity: 1; transform: none; } }

/* ---------- Floating island nav ---------- */
.nav {
  position: fixed; z-index: 60; top: 18px; left: 50%; width: min(calc(100% - var(--gutter) * 2), var(--container)); /* same edges as .wrap content */ transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 26px; border-radius: 999px;
  background: rgba(255, 254, 253, .72); border: 1px solid rgba(18, 26, 33, .06);
  box-shadow: 0 10px 40px -20px rgba(13, 99, 110, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
  transition: background-color .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease), top .6s var(--ease);
}
.nav.is-dark { background: rgba(8, 60, 67, .35); border-color: rgba(255, 254, 253, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.nav-logo { position: relative; display: block; width: 172px; height: 26px; flex: none; }
.nav-logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s var(--ease); }
.nav-logo .logo-light { opacity: 0; }
.nav.is-dark .logo-light { opacity: 1; }
.nav.is-dark .logo-dark { opacity: 0; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { position: relative; padding: 10px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: color .4s var(--ease), background-color .4s var(--ease); }
.nav-links a:hover { background: rgba(13, 99, 110, .08); }
.nav.is-dark .nav-links a { color: var(--white); }
.nav.is-dark .nav-links a:hover { background: rgba(255, 254, 253, .1); }
.nav-progress { position: absolute; left: 30px; right: 30px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--orange); transform-origin: left; transform: scaleX(0); opacity: 0; }
@supports (animation-timeline: scroll()) {
  .nav-progress { opacity: 1; animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}
.burger { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; }
.burger span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--white); border-radius: 2px; transition: transform .6s var(--ease), top .6s var(--ease); }
.burger span:nth-child(1) { top: 20px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 120px 24px 40px; background: rgba(8, 60, 67, .94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.menu-open .menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu a:not(.btn) { display: block; overflow: hidden; font-family: var(--display); font-weight: 300; font-size: clamp(40px, 11vw, 64px); line-height: 1.1; color: var(--white); }
.menu a:not(.btn) span { display: block; transform: translateY(100%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 70ms + 120ms); }
.menu-open .menu a span { transform: none; }
.menu .btn { margin-top: 28px; align-self: flex-start; opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease) .45s, transform .6s var(--ease) .45s; }
.menu-open .menu .btn { opacity: 1; transform: none; }


.float { position: absolute; z-index: 2; transform: translate3d(calc(var(--mx, 0) * var(--depth) * 1px), calc(var(--my, 0) * var(--depth) * 1px), 0); transition: transform 1.4s var(--ease); }
.float img { width: 100%; }
@media (prefers-reduced-motion: no-preference) { .float img { animation: bob 7s ease-in-out infinite; animation-delay: var(--bd, 0s); } }
@keyframes bob { 50% { transform: translateY(-10px) rotate(3deg); } }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding-block: var(--section); }
.section--mist { background: var(--mist); }
.head { max-width: 860px; }
.head .tag { margin-bottom: 28px; }
.head .lead { margin-top: 28px; max-width: 58ch; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lead { margin-inline: auto; }

/* Double-bezel card */
.shell { padding: 7px; border-radius: 32px; background: rgba(18, 26, 33, .035); border: 1px solid rgba(18, 26, 33, .05); }
.core { position: relative; border-radius: 26px; background: var(--white); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), 0 1px 2px rgba(13, 99, 110, .04), 0 24px 48px -32px rgba(13, 99, 110, .28); }


/* ---------- CTA (teal) ---------- */
.cta { background: radial-gradient(90% 120% at 50% 0%, #11727E, var(--teal) 45%, var(--teal-night)); color: rgba(255, 254, 253, .82); overflow: hidden; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: url("../patterns/Pattern-Line-White-Tile.svg") 0 0 / 88px 131px repeat; opacity: .06; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { color: var(--white); max-width: 12ch; margin-inline: auto; }
.cta-copy { display: grid; gap: 16px; max-width: 56ch; margin: 40px auto 0; font-size: clamp(17px, 1.3vw, 19px); font-weight: 300; }
.cta-act { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 52px; }
.cta-act .btn { min-height: 72px; padding-left: 34px; font-size: 18px; }
.cta-act .btn .island { width: 56px; height: 56px; }
.cta-act small { font-size: 14px; color: rgba(255, 254, 253, .65); }
.cta .float { width: clamp(70px, 9vw, 140px); }
.cta .c1 { left: 6%; top: 18%; --depth: 30; }
.cta .c2 { right: 8%; top: 14%; --depth: -24; width: clamp(50px, 6vw, 90px); --bd: -3s; }
.cta .c3 { left: 12%; bottom: 12%; --depth: -36; width: clamp(56px, 7vw, 100px); --bd: -5s; }
.cta .c4 { right: 10%; bottom: 16%; --depth: 20; --bd: -2s; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.faq-side { position: sticky; top: 140px; }
.faq-side .ulink { margin-top: 32px; color: var(--teal); }
.qa { border-top: 1px solid var(--hair); }
.qa:last-child { border-bottom: 1px solid var(--hair); }
.qa-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.3; color: var(--ink); transition: color .4s var(--ease); }
.qa-q:hover { color: var(--teal); }
.pm { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .7s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--ink); border-radius: 2px; transition: transform .7s var(--ease), background-color .5s; }
.pm::after { transform: rotate(90deg); }
.qa.is-open .pm { background: var(--teal); border-color: var(--teal); transform: rotate(180deg); }
.qa.is-open .pm::before, .qa.is-open .pm::after { background: var(--white); }
.qa.is-open .pm::after { transform: rotate(0deg); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.qa-a > div { overflow: hidden; }
.qa-a p { padding: 0 64px 32px 0; font-weight: 300; font-size: 17px; max-width: 64ch; opacity: 0; transform: translateY(-8px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.qa.is-open .qa-a { grid-template-rows: 1fr; }
.qa.is-open .qa-a p { opacity: 1; transform: none; transition-delay: .15s; }

/* ---------- Footer shared bits (newsletter pill, back to top) ---------- */
.news { margin-top: 36px; }
.news label { display: block; margin-bottom: 14px; color: var(--white); font-size: 14px; font-weight: 500; }
.news-shell { display: flex; align-items: center; max-width: 420px; padding: 6px 6px 6px 22px; border-radius: 999px; background: #1B252E; border: 1px solid #33404A; transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.news-shell:focus-within { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(87, 214, 213, .15); }
.news-shell input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--white); font: 400 15px var(--body); outline: none; }
.news-shell input::placeholder { color: #8D9AA4; }
.to-top { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; color: #C9D2D8; font-size: 13.5px; }
.to-top span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #33404A; transition: transform .6s var(--ease), background-color .5s; }
.to-top img { width: 16px; transform: rotate(-90deg); }
.to-top:hover span { transform: translateY(-4px); background: #1F2A33; }

/* ---------- Mobile sticky CTA ---------- */
.m-cta { display: none; }


/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav .btn { display: none; }
  .burger { display: block; }
  .nav { padding: 8px 8px 8px 22px; }
  .faq { grid-template-columns: 1fr; }
  .faq-side { position: static; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav { top: 12px; }
  .nav-logo { width: 150px; height: 23px; }
  .qa-a p { padding-right: 0; }
  .cta .float { display: none; }
  .cta-act .btn { min-height: 64px; font-size: 16px; padding-left: 26px; }
  .cta-act .btn .island { width: 48px; height: 48px; }
  .m-cta { display: flex; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; transform: translateY(140%); transition: transform .7s var(--ease); }
  .m-cta.is-on { transform: none; }
  .m-cta .btn { width: 100%; justify-content: space-between; box-shadow: 0 16px 40px -12px rgba(18, 26, 33, .45); }
}

@media (prefers-reduced-motion: reduce) {
  .float { transform: none !important; }
}

/* ==========================================================================
   Shared components
   ========================================================================== */

/* ---------- Current page in nav ---------- */
.nav-links a[aria-current="page"] { background: rgba(13, 99, 110, .1); }
.nav.is-dark .nav-links a[aria-current="page"] { background: rgba(255, 254, 253, .14); }

/* ---------- Service page hero (detail pages) ---------- */
.svc-hero { position: relative; min-height: 94dvh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(110% 90% at 85% 20%, #11727E 0%, var(--teal) 40%, var(--teal-night) 100%); color: rgba(255, 254, 253, .82); }
.svc-hero::before { content: ""; position: absolute; inset: 0; background: url("../patterns/Pattern-Line-White-Tile.svg") 0 0 / 88px 131px repeat; opacity: .06; -webkit-mask-image: radial-gradient(60% 70% at 80% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 80% 50%, #000, transparent 75%); }
.svc-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 5vw, 88px); align-items: center; padding-block: 150px 96px; }
.svc-hero h1 { color: var(--white); margin-top: 28px; max-width: 14ch; }
.svc-hero .mark-u { background-size: 0% .07em; background-position: 0 94%; transition-delay: 1.1s; }
.svc-hero h1.is-in .mark-u { background-size: 100% .07em; }
.svc-hero p.sub { margin-top: 32px; max-width: 48ch; font-weight: 300; font-size: clamp(17px, 1.3vw, 20px); }
.svc-hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 44px; }
.svc-hero .note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 254, 253, .72); }
.svc-hero .note img { width: 18px; opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .js .svc-hero .hl { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d); }
  .js.loaded .svc-hero .hl { opacity: 1; transform: none; }
}
.svc-hero .stage-wrap { width: min(100%, 520px); justify-self: end; }
.svc-hero .stage-wrap .shell { background: rgba(255, 254, 253, .08); border-color: rgba(255, 254, 253, .14); }

/* ---------- Works best (light network) ---------- */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 110px); align-items: center; }
.works .lead + .lead { margin-top: 18px; }
.works .head .lead { margin-top: 28px; }

/* ---------- Includes (10 capabilities) ---------- */
.inc-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(56px, 6vw, 88px); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.inc { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 230px; padding: 28px 26px 30px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); isolation: isolate; overflow: hidden; }
.inc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--teal); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.inc:hover::before { transform: none; }
.inc-ic { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); transition: background-color .5s var(--ease), transform .8s var(--spring); }
.inc-ic img { width: 30px; transition: opacity .3s; }
.inc-ic img + img { position: absolute; opacity: 0; }
.inc:hover .inc-ic { background: rgba(255, 254, 253, .12); transform: rotate(-10deg) scale(1.08); }
.inc:hover .inc-ic img:first-child { opacity: 0; }
.inc:hover .inc-ic img + img { opacity: 1; }
.inc h3 { font-size: clamp(19px, 1.5vw, 22px); font-weight: 400; line-height: 1.2; transition: color .5s var(--ease); }
.inc:hover h3 { color: var(--white); }
.inc-n { position: absolute; right: 22px; top: 24px; font: 500 12px var(--body); letter-spacing: .08em; color: #8C979E; transition: color .5s; }
.inc:hover .inc-n { color: var(--aqua); }

/* ---------- Network diagram (dark by default, .net--light on light sections) ---------- */
.net { position: relative; width: min(100%, 560px); aspect-ratio: 1; justify-self: center; }
.net svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net .ring { fill: none; stroke: rgba(255, 254, 253, .1); stroke-width: .25; stroke-dasharray: .6 1.2; }
.net .ln { fill: none; stroke: rgba(255, 254, 253, .32); stroke-width: .3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .5s var(--ease), stroke-width .5s var(--ease); }
.loaded .net.is-in .ln { animation: lnDraw 1.4s var(--ease) forwards; animation-delay: calc(.9s + var(--k) * 90ms); }
@keyframes lnDraw { to { stroke-dashoffset: 0; } }
.net .ln.hot { stroke: var(--orange); stroke-width: .55; }
.net .pulse { fill: var(--yellow); opacity: 0; }
.loaded .net.is-in .pulse { opacity: .9; transition: opacity .6s 2.2s; }
.n-core { position: absolute; left: 50%; top: 50%; width: 31%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.6); opacity: 0; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 6px; background: var(--white); box-shadow: 0 0 0 10px rgba(255, 254, 253, .08), 0 0 0 22px rgba(255, 254, 253, .04), 0 30px 60px -20px rgba(0, 0, 0, .45); transition: transform 1.2s var(--spring) .5s, opacity .6s var(--ease) .5s; }
.loaded .net.is-in .n-core { transform: translate(-50%, -50%); opacity: 1; }
.n-core img { width: 36%; }
.n-core span { font-family: var(--display); font-weight: 400; font-size: clamp(15px, 1.7vw, 24px); line-height: 1; color: var(--ink); }
.n-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(.7); opacity: 0; display: grid; place-items: center; width: 27%; aspect-ratio: 1; padding: 8px; border-radius: 50%; border: 1px solid rgba(255, 254, 253, .2); background: rgba(8, 60, 67, .55); color: var(--white); text-align: center; font-family: var(--display); font-weight: 300; font-size: clamp(13px, 1.35vw, 19px); line-height: 1.1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .9s var(--spring), opacity .6s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease), color .5s; transition-delay: calc(1.3s + var(--k) * 110ms), calc(1.3s + var(--k) * 110ms), 0s, 0s, 0s; }
.loaded .net.is-in .n-node { transform: translate(-50%, -50%); opacity: 1; }
.n-node:hover, .n-node:focus-visible { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: translate(-50%, -50%) scale(1.08); transition-delay: 0s; }
.n-node--main { width: 31%; background: rgba(255, 205, 78, .14); border-color: rgba(255, 205, 78, .5); font-size: clamp(15px, 1.6vw, 22px); }
.net--light .ring { stroke: rgba(13, 99, 110, .18); }
.net--light .ln { stroke: rgba(13, 99, 110, .35); }
.net--light .pulse { fill: var(--orange); }
.net--light .n-core { background: var(--teal); box-shadow: 0 0 0 10px rgba(13, 99, 110, .08), 0 0 0 22px rgba(13, 99, 110, .04), 0 30px 60px -24px rgba(13, 99, 110, .5); }
.net--light .n-core span { color: var(--white); }
.net .n-core span { text-align: center; padding-inline: 8%; }
.net--light .n-core span { font-size: clamp(14px, 1.45vw, 21px); }
/* mid-page diagrams start sooner than the hero one */
.loaded .net--light.is-in .ln { animation-delay: calc(.15s + var(--k) * 80ms); }
.net--light .n-core { transition-delay: .1s; }
.net--light .n-node { transition-delay: calc(.45s + var(--k) * 100ms), calc(.45s + var(--k) * 100ms), 0s, 0s, 0s; }
.net--light .pulse { transition-delay: 1.4s; }
.net--light .n-node { background: var(--white); border-color: var(--hair); color: var(--ink); box-shadow: 0 16px 36px -22px rgba(13, 99, 110, .45); backdrop-filter: none; -webkit-backdrop-filter: none; }
.net--light .n-node--main { background: var(--yellow-soft); border-color: rgba(255, 205, 78, .8); }

/* ---------- Process line (drawn on view) ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: clamp(64px, 7vw, 104px); }
.process::before, .process::after { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 1px; background: var(--hair); }
.process::after { background: linear-gradient(90deg, var(--aqua), var(--teal) 60%, var(--orange)); height: 2px; top: 26.5px; transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--ease) .2s; }
.process.is-in::after { transform: none; }
.p-step { position: relative; padding-right: 8px; }
.p-node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 1px solid var(--hair); font: 500 13px var(--body); letter-spacing: .06em; color: var(--teal); margin-bottom: 36px; transform: scale(.5); opacity: 0; transition: transform .8s var(--spring), opacity .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease), border-color .5s; transition-delay: calc(.35s + var(--i) * .42s); }
.process.is-in .p-node { transform: none; opacity: 1; }
.p-step:hover .p-node { background: var(--orange); border-color: var(--orange); color: var(--ink); transition-delay: 0s; }
.p-step h3 { font-size: clamp(28px, 2.1vw, 31px); font-weight: 300; margin-bottom: 14px; }
.p-step p { font-size: 16px; font-weight: 300; max-width: 26ch; }
.p-step .p-body { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(.5s + var(--i) * .42s); }
.process.is-in .p-body { opacity: 1; transform: none; }
.reduced .p-node, .reduced .p-body { opacity: 1; transform: none; }
.read { font-size: clamp(40px, 4.7vw, 72px); line-height: 1.02; letter-spacing: -.03em; font-weight: 300; color: var(--white); max-width: 15ch; }
.read .rw { opacity: .16; transition: opacity .5s var(--ease); }
.read .rw.on { opacity: 1; }

/* ---------- Stage: double-bezel panel with floating logo / icon tiles ---------- */
.stage-wrap .shell { border-radius: 40px; }
.stage { position: relative; overflow: hidden; aspect-ratio: 1 / 1.02; border-radius: 33px; background: var(--bg, var(--mist)); }
.stage::before { content: ""; position: absolute; inset: 0; background: url("../patterns/Pattern-Line-Black-Tile.svg") 0 0 / 70px 105px repeat; opacity: .045; }
.stage--dark::before { background-image: url("../patterns/Pattern-Line-White-Tile.svg"); opacity: .09; }
.stage .deco { position: absolute; width: var(--w); left: var(--x); top: var(--y); opacity: var(--o, 1); transform: rotate(var(--r, 0deg)); }
.tile { position: absolute; left: var(--x); top: var(--y); width: var(--s, 22%); aspect-ratio: 1; transform: translate(-50%, -50%) translate3d(calc(var(--mx, 0) * var(--depth, 20) * 1px), calc(var(--my, 0) * var(--depth, 20) * 1px), 0); transition: transform 1.4s var(--ease); }
.tile > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 28%; background: var(--white); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), 0 18px 36px -18px rgba(13, 99, 110, .45); }
@media (prefers-reduced-motion: no-preference) { .tile > span { animation: bob 7s ease-in-out infinite; animation-delay: var(--bd, 0s); } }
.tile .lg { width: var(--lw, 46%); aspect-ratio: 1; background: var(--c, var(--ink)); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.tile .ic { width: 50%; }
.tile .word { font: 500 clamp(13px, 1.3vw, 17px)/1 var(--body); letter-spacing: -.01em; color: var(--ink); }
.tile--glass > span { background: rgba(255, 254, 253, .12); border: 1px solid rgba(255, 254, 253, .2); box-shadow: none; }
.tile--lg > span { border-radius: 30%; }
.stage-photo { position: absolute; inset: 9% 9% 20% 9%; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(18, 26, 33, .5); }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.stage-wrap:hover .stage-photo img { transform: scale(1.05); }
.ph-tag { position: absolute; z-index: 3; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(18, 26, 33, .7); color: #fff; font: 500 10px var(--body); letter-spacing: .12em; }
@media (prefers-reduced-motion: no-preference) {
  .js .stage-wrap .tile, .js .stage-wrap .stage-photo { opacity: 0; scale: .8; transition: opacity .9s var(--ease), scale 1s var(--spring), transform 1.4s var(--ease); transition-delay: calc(var(--k, 0) * 90ms + 200ms), calc(var(--k, 0) * 90ms + 200ms), 0s; }
  .js .stage-wrap.is-in .tile, .js .stage-wrap.is-in .stage-photo { opacity: 1; scale: 1; }

/* ---------- Pillars: tab list + framed detail panel ---------- */
.pillars-head { text-align: center; max-width: 1040px; margin-inline: auto; }
.pillars-head .tag { margin-bottom: 26px; }
.pillars-head .lead { margin: 26px auto 0; max-width: 56ch; }
.pillars { display: grid; grid-template-columns: .72fr 1.28fr; gap: 20px; margin-top: clamp(56px, 6vw, 88px); align-items: start; }
.p-tabs { position: sticky; top: 130px; display: grid; gap: 8px; }
.p-tab { position: relative; display: grid; grid-template-columns: 44px 1fr 24px; gap: 14px; align-items: center; width: 100%; padding: 18px 20px; border-radius: 22px; border: 1px solid var(--hair); background: var(--white); cursor: pointer; text-align: left; font: 400 clamp(18px, 1.5vw, 21px)/1.2 var(--display); color: var(--ink); transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s, transform .6s var(--ease); }
.p-tab .pn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); font: 500 12px var(--body); letter-spacing: .06em; color: var(--teal); transition: background-color .5s, border-color .5s, color .5s; }
.p-tab .chev { width: 20px; opacity: .35; transition: transform .6s var(--ease), opacity .4s; }
.p-tab:hover { border-color: var(--teal); transform: translateX(4px); }
.p-tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.p-tab[aria-selected="true"] .pn { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.p-tab[aria-selected="true"] .chev { opacity: 1; filter: brightness(0) invert(1); transform: translateX(4px); }
.p-panel-shell { border-radius: 40px; }
.p-panel-core { position: relative; border-radius: 33px; padding: clamp(32px, 4vw, 60px); min-height: 560px; overflow: hidden; }
.p-panel-core::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; bottom: -60px; background: var(--shape) center / contain no-repeat; opacity: .5; transition: transform 1s var(--ease); }
/* all panels share one grid cell, so the box keeps the tallest panel's height and never jumps */
.p-panel-core { display: grid; }
.p-panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-content: start; position: relative; z-index: 1; visibility: hidden; opacity: 0; }
.p-panel.is-active { visibility: visible; opacity: 1; animation: pIn .8s var(--ease) both; }
@keyframes pIn { from { opacity: 0; transform: translateY(18px); } }
.p-panel h3 { font-size: clamp(30px, 2.4vw, 36px); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.p-panel .pull { margin-top: 22px; font-family: var(--display); font-weight: 300; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.35; color: var(--teal); }
.p-panel .body p { margin-top: 18px; font-weight: 300; font-size: 16.5px; }
.p-panel .goal { margin-top: 26px; padding: 18px 20px; border-radius: 18px; background: var(--yellow-soft); font-size: 15.5px; color: var(--ink); }
.p-panel .goal b { font-weight: 500; }
.p-panel h4 { font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--ink); margin-bottom: 16px; }
.p-panel ul li { display: flex; gap: 12px; align-items: flex-start; padding-block: 12px; border-top: 1px solid var(--hair); font-size: 15.5px; color: var(--ink); }
.p-panel ul li:last-child { border-bottom: 1px solid var(--hair); }
.p-panel ul li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; background: url("../shapes/Myrtle-Commerce-Shape-Star-Oval-Teal.svg") center / contain no-repeat; }
.p-panel .ph { display: inline-block; margin-bottom: 18px; padding: 6px 10px; border-radius: 999px; background: rgba(18, 26, 33, .75); color: #fff; font: 500 10px var(--body); letter-spacing: .12em; }
.p-panel .ph-note { margin-top: 18px; padding: 18px 20px; border-radius: 18px; border: 1px dashed #B9C4CA; font-size: 15px; color: var(--slate); }

/* ---------- Shared component responsive ---------- */
@media (max-width: 1080px) {
  .net { width: min(100%, 520px); }
  .svc-hero-grid, .works { grid-template-columns: 1fr; }
  .svc-hero-grid { padding-top: 130px; gap: 64px; }
  .svc-hero .stage-wrap { justify-self: start; width: min(100%, 460px); }
  .inc-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .p-tabs { position: static; display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; padding-bottom: 4px; }
  .p-tabs::-webkit-scrollbar { display: none; }
  .p-tab { flex: none; width: auto; grid-template-columns: 36px auto; padding: 12px 18px 12px 12px; font-size: 16px; }
  .p-tab .pn { width: 36px; height: 36px; }
  .p-tab .chev { display: none; }
  .p-tab:hover { transform: none; }
  .process { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .process::before, .process::after { left: 27.5px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; }
  .process::after { width: 2px; left: 27px; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--aqua), var(--teal) 60%, var(--orange)); }
  .process.is-in::after { transform: none; }
  .p-step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding-bottom: 40px; }
  .p-node { margin-bottom: 0; }
  .p-step p { max-width: 46ch; }
}
@media (max-width: 767px) {
  .n-node { font-size: 12px; padding: 4px; }
  .svc-hero { min-height: 0; }
  .svc-hero-grid { padding-block: 120px 72px; }
  .svc-hero .cta-row { flex-direction: column; align-items: flex-start; }
  .inc-grid { grid-template-columns: 1fr 1fr; }
  .inc { min-height: 180px; padding: 22px 18px; gap: 28px; }
  .inc-n { right: 14px; top: 18px; }
  .p-panel { grid-template-columns: 1fr; }
  .p-panel-core { min-height: 0; padding: 28px 22px 32px; }
  .n-node--main { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-node, .p-body { opacity: 1 !important; transform: none !important; }
  .process::after { transform: none !important; }
  .read .rw { opacity: 1; }
}

/* ==========================================================================
   Services mega menu (built by mc.js from one list, desktop nav + mobile menu)
   ========================================================================== */
.nav-links .mm-trigger { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px 10px 16px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 500 14.5px var(--body); color: var(--ink); transition: color .4s var(--ease), background-color .4s var(--ease); }
.nav-links .mm-trigger:hover, .nav-links .mm-trigger[aria-expanded="true"] { background: rgba(13, 99, 110, .08); }
.nav-links .mm-trigger.is-current { background: rgba(13, 99, 110, .1); }
.nav.is-dark .nav-links .mm-trigger { color: var(--white); }
.nav.is-dark .nav-links .mm-trigger:hover, .nav.is-dark .nav-links .mm-trigger[aria-expanded="true"], .nav.is-dark .nav-links .mm-trigger.is-current { background: rgba(255, 254, 253, .14); }
.mm-chev { width: 10px; height: 10px; transition: transform .5s var(--ease); }
.mm-chev path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mm-trigger[aria-expanded="true"] .mm-chev { transform: rotate(180deg); }

.mega { position: absolute; left: 0; right: 0; top: calc(100% + 12px); z-index: 2; display: grid; grid-template-columns: .82fr 2fr; gap: 10px; padding: 10px; border-radius: 32px; background: var(--white); border: 1px solid rgba(18, 26, 33, .06); box-shadow: 0 30px 80px -30px rgba(13, 99, 110, .45), 0 2px 6px rgba(18, 26, 33, .04); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.985); transform-origin: top center; transition: opacity .35s var(--ease), transform .55s var(--ease), visibility 0s .55s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge across the gap */
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mm-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 28px; border-radius: 24px; background: var(--teal); color: rgba(255, 254, 253, .8); }
.mm-feature::before { content: ""; position: absolute; inset: 0; background: url("../patterns/Pattern-Line-White-Tile.svg") 0 0 / 70px 105px repeat; opacity: .08; }
.mm-feature::after { content: ""; position: absolute; width: 150px; height: 115px; right: -34px; bottom: -26px; background: url("../shapes/Myrtle-Commerce-Shape-Sprout-Yellow.svg") center / contain no-repeat; opacity: .9; transition: transform 1s var(--ease); }
.mm-feature:hover::after { transform: rotate(-10deg) translateY(-4px); }
.mm-feature small { position: relative; font: 500 11px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--aqua); }
.mm-feature b { position: relative; display: block; margin-top: 14px; font-family: var(--display); font-weight: 300; font-size: 26px; line-height: 1.12; color: var(--white); }
.mm-feature .ulink { position: relative; align-self: flex-start; color: var(--white); font-size: 14.5px; }
.mm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mm-item { position: relative; display: grid; grid-template-columns: 48px 1fr 20px; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; transition: background-color .4s var(--ease); }
.mm-item:hover, .mm-item:focus-visible { background: var(--mist); }
.mm-item.is-current { background: var(--aqua-soft); }
.mm-item--main { grid-column: 1 / -1; }
.mm-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--soft, var(--mist)); transition: transform .7s var(--spring); }
.mm-ic img { width: 26px; }
.mm-item:hover .mm-ic { transform: rotate(-8deg) scale(1.06); }
.mm-item b { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.2; color: var(--ink); }
.mm-item span.sub { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--slate); }
.mm-go { width: 18px; opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.mm-item:hover .mm-go, .mm-item:focus-visible .mm-go { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .mega .mm-item, .mega .mm-feature { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .4s var(--ease); }
  .mega.is-open .mm-item, .mega.is-open .mm-feature { opacity: 1; transform: none; transition-delay: calc(var(--mi, 0) * 45ms + 60ms), calc(var(--mi, 0) * 45ms + 60ms), 0s; }
}

/* mobile menu: Services row with an expandable sub-list */
.menu { overflow-y: auto; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.m-toggle { flex: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 254, 253, .3); background: none; cursor: pointer; opacity: 0; transition: opacity .6s var(--ease) .35s, background-color .4s, transform .6s var(--ease); }
.menu-open .m-toggle { opacity: 1; }
.m-toggle::before, .m-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: var(--white); border-radius: 2px; transition: transform .6s var(--ease); }
.m-toggle::after { transform: rotate(90deg); }
.m-toggle[aria-expanded="true"] { background: var(--orange); border-color: var(--orange); transform: rotate(180deg); }
.m-toggle[aria-expanded="true"]::before, .m-toggle[aria-expanded="true"]::after { background: var(--ink); }
.m-toggle[aria-expanded="true"]::after { transform: rotate(0deg); }
.m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.m-sub.is-open { grid-template-rows: 1fr; }
.m-sub > div { overflow: hidden; display: grid; gap: 2px; }
.menu .m-sub a { display: flex; align-items: center; gap: 12px; padding: 9px 0 9px 4px; font-family: var(--body); font-size: 17px; font-weight: 400; line-height: 1.3; color: rgba(255, 254, 253, .82); }
.menu .m-sub a img { width: 22px; opacity: .85; }
.menu .m-sub a:last-child { margin-bottom: 8px; color: var(--aqua); }

/* ==========================================================================
   FOOTER · Bento (chosen from footer-lab)
   ========================================================================== */
.fc { position: relative; background: var(--ink); color: #A9B4BC; font-size: 15px; padding-block: clamp(80px, 9vw, 120px) 0; }
.fc-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 14px; }
.fc-tile { position: relative; min-width: 0; padding: 6px; border-radius: 30px; background: rgba(255, 254, 253, .04); border: 1px solid rgba(255, 254, 253, .06); }
.fc-tile > div { position: relative; height: 100%; padding: 28px; border-radius: 24px; background: #18222B; overflow: hidden; }
.fc-tile h3 { margin-bottom: 18px; font: 500 12px var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--white); }
.fc-tile ul { display: grid; gap: 11px; }
.fc-tile a { transition: color .4s var(--ease); }
.fc-tile a:hover { color: var(--white); }
.fc-cta { grid-column: span 7; grid-row: span 2; }
.fc-cta > div { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(32px, 3.4vw, 48px); background: var(--orange); color: var(--ink); }
.fc-cta > div::after { content: ""; position: absolute; width: 320px; height: 250px; right: -70px; bottom: -80px; background: url("../shapes/Myrtle-Commerce-Shape-Sprout-Yellow.svg") center / contain no-repeat; opacity: .9; transition: transform 1.2s var(--ease); }
.fc-cta:hover > div::after { transform: rotate(-8deg) translateY(-8px); }
.fc-cta > div > * { position: relative; z-index: 1; }
.fc-cta small { position: relative; font: 500 11.5px var(--body); letter-spacing: .16em; text-transform: uppercase; }
.fc-cta h2 { position: relative; margin-top: 14px; font-size: clamp(40px, 3.5vw, 54px); font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--ink); max-width: 11ch; }
.fc-cta .row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.fc-cta .btn { --bg: var(--ink); --fg: var(--white); --ib: var(--orange); }
.fc-cta .btn::before { background: var(--teal); }
.fc-cta .note { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.fc-cta .note img { width: 18px; }
.fc-news { grid-column: span 5; }
.fc-news p { color: var(--white); font-family: var(--display); font-size: 24px; line-height: 1.2; margin-bottom: 20px; max-width: 18ch; }
.fc-contact { grid-column: span 5; }
.fc-contact > div { background: var(--teal); color: rgba(255, 254, 253, .82); }
.fc-contact > div::before { content: ""; position: absolute; inset: 0; background: url("../patterns/Pattern-Line-White-Tile.svg") 0 0 / 70px 105px repeat; opacity: .07; }
.fc-contact .copy { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--white); font: 300 clamp(20px, 1.7vw, 24px) var(--display); text-align: left; }
.fc-contact .copy .pill { display: inline-grid; place-items: center; min-width: 64px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255, 254, 253, .16); font: 500 12px var(--body); transition: background-color .4s, color .4s; }
.fc-contact .copy:hover .pill { background: var(--white); color: var(--teal); }
.fc-contact .copy.is-copied .pill { background: var(--yellow); color: var(--ink); }
.fc-contact p { position: relative; margin-top: 14px; font-size: 14.5px; }
.fc-svc { grid-column: span 4; }
.fc-co { grid-column: span 4; }
.fc-co .two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fc-brand { grid-column: span 4; }
.fc-brand > div { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.fc-brand img.logo { width: 180px; }
.fc-brand p { font-size: 14px; line-height: 1.65; }
@media (prefers-reduced-motion: no-preference) {
  .js .fc-bento .fc-tile { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 80ms); }
  .js .fc-bento.is-in .fc-tile { opacity: 1; transform: none; }
}
.fc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding-block: 26px; border-top: 1px solid #25313A; font-size: 13.5px; color: #8D9AA4; }

@media (max-width: 1080px) {
  .fc-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fc-cta { grid-column: 1 / -1; grid-row: auto; }
  .fc-news, .fc-contact { grid-column: span 3; }
  .fc-svc, .fc-co { grid-column: span 3; }
  .fc-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .fc-bento { grid-template-columns: minmax(0, 1fr); }
  .fc-cta > div::after { width: 200px; height: 156px; right: -60px; bottom: auto; top: -50px; transform: rotate(180deg); opacity: .5; }
  .fc-cta:hover > div::after { transform: rotate(180deg); }
  .fc-tile, .fc-cta, .fc-news, .fc-contact, .fc-svc, .fc-co, .fc-brand { grid-column: 1 / -1; }
  .fc-tile > div { padding: 24px 22px; }
  .fc-cta .btn { width: 100%; justify-content: space-between; }
  .fc-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ==========================================================================
   Booking popup (every "Book a ... Call" button opens it; built by mc.js)
   ========================================================================== */
.bk { width: min(980px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 36px; background: transparent; color: var(--slate); overflow: visible; }
.bk::backdrop { background: rgba(8, 24, 30, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bk[open] { animation: bkIn .6s var(--ease); }
.bk[open]::backdrop { animation: bkFade .4s var(--ease); }
.bk.is-closing { animation: bkOut .3s var(--ease) forwards; }
.bk.is-closing::backdrop { animation: bkFade .3s var(--ease) reverse forwards; }
@keyframes bkIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes bkOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes bkFade { from { opacity: 0; } }
.bk-shell { padding: 7px; border-radius: 36px; background: rgba(255, 254, 253, .18); border: 1px solid rgba(255, 254, 253, .3); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55); }
.bk-core { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 29px; overflow: hidden; background: var(--white); max-height: calc(100dvh - 48px); }
.bk-close { position: absolute; z-index: 3; right: 16px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 50%; background: var(--white); cursor: pointer; transition: transform .6s var(--ease), background-color .4s; }
.bk-close::before, .bk-close::after { content: ""; position: absolute; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.bk-close::after { transform: rotate(-45deg); }
.bk-close:hover { transform: rotate(90deg); background: var(--mist); }

.bk-info { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px; padding: clamp(32px, 4vw, 48px); background: radial-gradient(120% 100% at 0% 0%, #11727E, var(--teal) 50%, var(--teal-night)); color: rgba(255, 254, 253, .82); }
.bk-info::before { content: ""; position: absolute; inset: 0; background: url("../patterns/Pattern-Line-White-Tile.svg") 0 0 / 70px 105px repeat; opacity: .07; }
.bk-info::after { content: ""; position: absolute; width: 170px; height: 131px; right: -46px; top: -44px; background: url("../shapes/Myrtle-Commerce-Shape-Sprout-Yellow.svg") center / contain no-repeat; transform: rotate(180deg); opacity: .55; }
.bk-info > * { position: relative; z-index: 1; }
.bk-info .tag { align-self: flex-start; }
.bk-info h2 { color: var(--white); font-size: clamp(32px, 2.6vw, 38px); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; }
.bk-info p { font-weight: 300; font-size: 16px; line-height: 1.6; }
.bk-facts { display: grid; gap: 12px; margin-top: auto; padding-top: 8px; }
.bk-facts li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--white); }
.bk-facts img { width: 20px; opacity: .9; }

.bk-pick { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 44px); padding-top: 72px; overflow-y: auto; }
.bk-ph { position: absolute; left: clamp(28px, 3.4vw, 44px); top: 26px; padding: 6px 10px; border-radius: 999px; background: rgba(18, 26, 33, .75); color: #fff; font: 500 10px var(--body); letter-spacing: .12em; }
.bk-pick h3 { font-size: 24px; font-weight: 400; }
.bk-tz { margin-top: 6px; font-size: 13.5px; color: var(--slate); }
.bk-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 20px; }
.bk-day { display: grid; gap: 2px; justify-items: center; padding: 12px 4px; border-radius: 18px; border: 1px solid var(--hair); background: var(--white); cursor: pointer; font: 400 12px var(--body); color: var(--slate); transition: border-color .4s var(--ease), background-color .4s, color .4s, transform .5s var(--spring); }
.bk-day b { font: 400 22px/1.1 var(--display); color: var(--ink); transition: color .4s; }
.bk-day:hover { border-color: var(--teal); }
.bk-day:active { transform: scale(.96); }
.bk-day[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: rgba(255, 254, 253, .8); }
.bk-day[aria-pressed="true"] b { color: var(--white); }
.bk-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.bk-time { min-height: 44px; border-radius: 999px; border: 1px solid var(--hair); background: var(--white); cursor: pointer; font: 500 14px var(--body); color: var(--ink); transition: border-color .4s var(--ease), background-color .4s, color .4s; }
.bk-time:hover { border-color: var(--teal); }
.bk-time[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .bk-times.is-new .bk-time { animation: bkSlot .5s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
}
@keyframes bkSlot { from { opacity: 0; transform: translateY(8px); } }
.bk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 24px; }
.bk-sel { font-size: 14px; color: var(--slate); }
.bk-sel b { color: var(--ink); font-weight: 500; }
.bk-foot .btn[disabled] { opacity: .45; pointer-events: none; }
.bk-done { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding-block: 24px; }
.bk-pick.is-done > :not(.bk-done):not(.bk-ph) { display: none; }
.bk-pick.is-done .bk-done { display: flex; animation: bkIn .7s var(--ease); }
.bk-done .mark { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--aqua-soft); }
.bk-done .mark svg { width: 40px; }
.bk-done .mark path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.bk-pick.is-done .bk-done .mark path { animation: draw .9s var(--ease) .25s forwards; }
.bk-done h3 { font-size: 28px; font-weight: 300; }
.bk-done p { max-width: 38ch; font-size: 15px; }
.bk-done small { max-width: 40ch; padding: 12px 14px; border-radius: 14px; border: 1px dashed #B9C4CA; font-size: 13px; color: var(--slate); }
.bk-frame { flex: 1; min-height: 560px; width: 100%; border: 0; }
html.bk-lock { overflow: hidden; }

@media (max-width: 860px) {
  .bk { width: 100%; max-height: 100dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .bk[open] { animation-name: bkUp; }
  .bk.is-closing { animation-name: bkDown; }
  @keyframes bkUp { from { transform: translateY(100%); } }
  @keyframes bkDown { to { transform: translateY(100%); } }
  .bk-shell { padding: 0; border: 0; border-radius: 28px 28px 0 0; }
  .bk-core { grid-template-columns: 1fr; border-radius: 28px 28px 0 0; max-height: 92dvh; overflow-y: auto; }
  .bk-info { gap: 14px; padding: 28px 22px 24px; }
  .bk-info p, .bk-info .bk-facts li:nth-child(n+3) { display: none; }
  .bk-info h2 { font-size: 30px; padding-right: 48px; }
  .bk-info::after { width: 120px; height: 92px; right: auto; left: -30px; top: auto; bottom: -30px; transform: none; opacity: .8; }
  .bk-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 0; }
  .bk-close { background: rgba(255, 254, 253, .16); border-color: rgba(255, 254, 253, .3); }
  .bk-close::before, .bk-close::after { background: var(--white); }
  .bk-pick { padding: 36px 20px calc(24px + env(safe-area-inset-bottom)); overflow: visible; }
  .bk-ph { left: 20px; top: 22px; }
  .bk-days { gap: 6px; }
  .bk-day b { font-size: 19px; }
  .bk-times { grid-template-columns: repeat(3, 1fr); }
  .bk-foot .btn { width: 100%; justify-content: space-between; }
}
/* the desktop mega panel is not used below 1080px (the mobile menu has its own list) */
@media (max-width: 1080px) { .mega { display: none; } }
