/* ==========================================================================
   Intermedia CMS — design ported from the Kimi Agent React build
   Tokens: warm off-white bg, green primary, coral accent, Montserrat
   ========================================================================== */

:root {
  --background: hsl(40, 44%, 96%);
  --foreground: hsl(225, 12%, 14%);
  --card: hsl(0, 0%, 100%);
  --primary: hsl(128, 44%, 42%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(40, 40%, 90%);
  --muted: hsl(38, 30%, 91%);
  --muted-foreground: hsl(225, 8%, 42%);
  --accent: hsl(7, 100%, 67%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(35, 25%, 86%);
  --dark: #23262b;
  --gold: #f0a92e;
  --green-flat: #3fa34d;
  --coral-flat: #ff6f61;
  --radius: 0.75rem;
  --gradient: linear-gradient(100deg, #ff5f6d 0%, #ff8c42 100%);
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; margin-top: 0 !important; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
::selection { background: hsla(7, 100%, 67%, 0.85); color: #fff; }

.wrap { margin-inline: auto; max-width: 80rem; padding-inline: 1.25rem; }
.wrap-narrow { margin-inline: auto; max-width: 56rem; padding-inline: 1.25rem; }
.wrap-mid { margin-inline: auto; max-width: 64rem; padding-inline: 1.25rem; }
.wrap-wide-mid { margin-inline: auto; max-width: 72rem; padding-inline: 1.25rem; }
@media (min-width: 640px) {
  .wrap, .wrap-narrow, .wrap-mid, .wrap-wide-mid { padding-inline: 2rem; }
}

/* ---------- Buttons & labels ---------- */
.btn-gradient {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 9999px; padding: .75rem 1.75rem;
  font-size: .875rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase;
  color: #fff; background-image: var(--gradient);
  box-shadow: 0 10px 24px -8px rgba(255,111,97,.55);
  transition: all .3s;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(255,111,97,.6); color: #fff; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 9999px; border: 2px solid var(--accent); padding: .625rem 1.5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase;
  color: var(--accent); transition: all .3s;
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-ghost-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em;
  color: var(--primary); transition: color .3s;
}
.btn-ghost-arrow:hover { color: var(--accent); }
.eyebrow {
  font-size: .875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .25em; color: var(--accent); margin: 0;
}

/* ---------- Cards / decorative ---------- */
.card-soft {
  border-radius: 1rem; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: all .3s;
}
a.card-soft:hover, .card-soft.hoverable:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(34,37,42,.18);
}
.dot { position: absolute; border-radius: 9999px; pointer-events: none; }

/* ---------- Animations ---------- */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.animate-floaty { animation: floaty 5s ease-in-out infinite; }
@keyframes slideFadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.slide-fade-in { animation: slideFadeIn .6s ease both; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Header / Nav ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: all .3s; }
.site-header.scrolled { background: hsla(40, 44%, 96%, .9); box-shadow: 0 4px 12px rgba(0,0,0,.08); backdrop-filter: blur(12px); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 2.5rem; width: auto; }
.brand-name { display: none; font-size: 1.125rem; font-weight: 800; letter-spacing: -.025em; }
.brand-name em { font-style: normal; color: var(--primary); }
@media (min-width: 640px) { .brand-name { display: block; } }
.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-desktop > a:not(.btn-outline), .nav-desktop .nav-drop-btn {
  position: relative; font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 1.625;
  letter-spacing: .18em; padding-bottom: .25rem; color: hsla(225,12%,14%,.7); transition: color .3s;
}
.nav-desktop > a:not(.btn-outline):hover, .nav-desktop .nav-drop-btn:hover { color: var(--foreground); }
.nav-desktop > a:not(.btn-outline).current { color: var(--primary); }
.nav-drop { position: relative; }
.nav-drop-btn { display: flex; align-items: center; gap: .375rem; }
.nav-drop-btn svg { height: .875rem; width: .875rem; transition: transform .3s; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop.onpath .nav-drop-btn { color: var(--primary); }
.nav-drop-menu {
  position: absolute; left: 50%; top: 100%; margin-top: .75rem; width: 20rem;
  transform: translate(-50%, -8px); border-radius: 1rem; border: 1px solid var(--border);
  background: #fff; padding: .75rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
  opacity: 0; visibility: hidden; transition: all .2s;
}
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop-menu a { display: block; border-radius: .75rem; padding: .75rem 1rem; transition: background .3s; }
.nav-drop-menu a:hover { background: var(--background); }
.nav-drop-menu a .t { display: block; font-size: .875rem; font-weight: 700; }
.nav-drop-menu a .d { display: block; margin-top: .125rem; font-size: .75rem; line-height: 1.5; color: var(--muted-foreground); }
.nav-drop-menu a.all {
  margin-top: .5rem; border-radius: .75rem; background: hsla(128,44%,42%,.1);
  padding: .625rem 1rem; text-align: center; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em; color: var(--primary); transition: all .3s;
}
.nav-drop-menu a.all:hover { background: var(--primary); color: #fff; }
.nav-toggle {
  display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid var(--border); background: rgba(255,255,255,.7);
  color: var(--foreground);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { height: 1.25rem; width: 1.25rem; }
.nav-mobile { overflow: hidden; max-height: 0; border-top: 1px solid transparent; background: hsla(40,44%,96%,.95); backdrop-filter: blur(12px); transition: max-height .3s; }
.nav-mobile.open { max-height: 560px; border-top-color: var(--border); }
@media (min-width: 1024px) { .nav-mobile { display: none; } }
.nav-mobile nav { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .25rem; }
.nav-mobile a { display: block; border-radius: .75rem; padding: .75rem 1rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: hsla(225,12%,14%,.7); }
.nav-mobile a.current { background: hsla(128,44%,42%,.1); color: var(--primary); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 9rem 0 3.5rem; text-align: center; }
@media (min-width: 640px) { .page-hero { padding: 11rem 0 5rem; } }
.page-hero h1 { margin-top: 1rem; font-size: 2.25rem; font-weight: 900; letter-spacing: -.025em; text-wrap: balance; }
.blog .page-hero h1 { line-height: 1.325; }
@media (min-width: 640px) { .page-hero h1 { font-size: 3rem; } }
.page-hero .lede { margin: 1.5rem auto 0; max-width: 42rem; font-size: 1.125rem; line-height: 1.75; color: var(--muted-foreground); }

/* ---------- Section header ---------- */
.section-header { max-width: 42rem; margin-inline: auto; text-align: center; }
.section-header.left { margin-inline: 0; text-align: left; }
.section-header h2 { margin-top: .75rem; font-size: 1.875rem; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
@media (min-width: 640px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p.lede { margin-top: 1rem; line-height: 1.75; color: var(--muted-foreground); }

/* ---------- Quote box ---------- */
.quote-box {
  position: relative; overflow: hidden; border-radius: 1.5rem; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 2rem;
}
@media (min-width: 640px) { .quote-box { padding: 3rem; } }
.quote-box::before {
  content: "\201C"; position: absolute; top: -1.5rem; left: 1.5rem;
  font-size: 140px; font-weight: 900; line-height: 1; color: hsla(128,44%,42%,.1); pointer-events: none;
}
.quote-box .quote-body { position: relative; font-size: 1.25rem; font-weight: 700; line-height: 1.75; }
@media (min-width: 640px) { .quote-box .quote-body { font-size: 1.5rem; } }
.quote-box .btn-gradient { margin-top: 2rem; }

/* Quote box accent: gradient top bar + coral quote mark */
.quote-box-accent { background: linear-gradient(90deg, #3fa34d, #ff6f61, #f0a92e) top / 100% 4px no-repeat, #fff; }
.quote-box-accent::before { color: hsla(7,100%,67%,.14); }

/* About: "We believe" quote — color-coded keywords */
.quote-box-beliefs .k { font-weight: 800; }
.quote-box-beliefs .k-design { color: #3fa34d; }
.quote-box-beliefs .k-technology { color: #ff6f61; }
.quote-box-beliefs .k-business { color: #f0a92e; }

/* ---------- Front page: hero slider ---------- */
.hero-eyebrow-tag .t { white-space: nowrap; }
.hero-eyebrow-tag .sep { color: hsla(225,12%,14%,.3); margin-inline: .35rem; }
@media (max-width: 480px) { .hero-eyebrow-tag { font-size: .72rem; letter-spacing: .1em; white-space: nowrap; } }
.hero { position: relative; overflow-hidden; padding: 8rem 0 5rem; }
@media (min-width: 640px) { .hero { padding-top: 10rem; } }
.hero-grid { display: grid; align-items: center; gap: 3.5rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-slide h1 { font-size: 2.25rem; font-weight: 900; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
@media (min-width: 640px) { .hero-slide h1 { font-size: 3rem; } }
.hero-slide p { margin-top: 1.5rem; max-width: 32rem; font-size: 1.125rem; line-height: 1.75; color: var(--muted-foreground); }
.hero-slide-box { margin-top: 1.5rem; min-height: 240px; }
@media (min-width: 640px) { .hero-slide-box { min-height: 230px; } }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.hero-devices { position: relative; display: none; justify-content: center; }
@media (min-width: 1024px) { .hero-devices { display: flex; } }
.hero-devices .glow { position: absolute; inset: -2.5rem; border-radius: 9999px; background: linear-gradient(to top right, hsla(128,44%,42%,.1), transparent, hsla(7,100%,67%,.1)); filter: blur(40px); }
.hero-devices .mac { position: relative; width: 100%; max-width: 36rem; filter: drop-shadow(0 25px 25px rgba(0,0,0,.15)); }
.hero-devices .phone { position: absolute; left: -1rem; bottom: 0; width: 8rem; filter: drop-shadow(0 20px 13px rgba(0,0,0,.12)); }
.hero-controls { margin-top: 3.5rem; display: flex; align-items: center; gap: .75rem; }
.hero-controls .pip { height: .625rem; width: .625rem; border-radius: 9999px; background: hsla(225,12%,14%,.2); transition: all .4s; }
.hero-controls .pip:hover { background: hsla(225,12%,14%,.4); }
.hero-controls .pip.active { width: 2.5rem; background: var(--primary); }
.hero-controls .count { margin-left: .75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--muted-foreground); }
.hero-partners { margin-top: 5rem; }
.hero-partners .logos { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem 3rem; }
.hero-partners img { height: 2rem; width: auto; object-fit: contain; opacity: .7; filter: grayscale(1); transition: all .3s; }
.hero-partners img:hover { opacity: 1; filter: none; }
@media (min-width: 640px) { .hero-partners img { height: 2.25rem; } }

/* ---------- Front page: hello band ---------- */
.hello-band { position: relative; overflow: hidden; padding: 6rem 0; background: var(--dark); }
.hello-band .bg-glow { position: absolute; inset: 0; opacity: .6;
  background: radial-gradient(600px 300px at 12% 20%, rgba(63,163,77,.22), transparent 70%),
              radial-gradient(500px 260px at 88% 85%, rgba(255,111,97,.18), transparent 70%); }
.hello-band .big-quote { position: absolute; top: -2.5rem; right: 6%; font-size: 260px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.05); pointer-events: none; }
.hello-grid { position: relative; display: grid; align-items: center; gap: 3rem; }
@media (min-width: 1024px) { .hello-grid { grid-template-columns: 2fr 3fr; } }
.hello-left .kicker { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; color: var(--primary); }
.hello-left h2 { margin-top: 1rem; font-size: 3rem; font-weight: 900; line-height: 1.05; letter-spacing: -.025em; color: #fff; }
@media (min-width: 640px) { .hello-left h2 { font-size: 3.75rem; } }
.hello-left h2 em { font-style: normal; color: var(--accent); }
.hello-left .sub { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: rgba(255,255,255,.85); }
.hello-left .btn-gradient { margin-top: 2.25rem; }
.hello-card { position: relative; border-radius: 1.5rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); backdrop-filter: blur(4px); padding: 2rem; }
@media (min-width: 640px) { .hello-card { padding: 2.5rem; } }
.hello-card::before { content: "\201C"; position: absolute; top: -1.75rem; left: 2rem; font-size: 110px; font-weight: 900; line-height: 1; color: hsla(128,44%,42%,.4); pointer-events: none; }
.hello-card .inner { position: relative; display: flex; flex-direction: column; gap: 1.25rem; color: rgba(255,255,255,.75); }
.hello-card strong { color: #fff; font-weight: 600; }
.hello-card .punch { font-size: 1.125rem; font-weight: 700; color: #fff; }
.hello-card .punch em { font-style: normal; color: var(--primary); }

/* ---------- Front page: services strip ---------- */
.services-strip { padding: 5rem 0; }
.services-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { display: flex; height: 100%; flex-direction: column; padding: 1.75rem; }
.icon-tile { display: flex; height: 52px; width: 52px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 1rem; background: hsla(128,44%,42%,.1); color: var(--primary); transition: all .3s; }
.icon-tile svg { height: 1.5rem; width: 1.5rem; }
a:hover > .icon-tile, .service-card:hover .icon-tile { background: var(--primary); color: #fff; }
.service-card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 800; }
.service-card .short { margin-top: .625rem; flex: 1; font-size: .875rem; line-height: 1.7; color: var(--muted-foreground); }
.learn-more { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--primary); transition: color .3s; }
.service-card:hover .learn-more { color: var(--accent); }
.learn-more svg { height: .875rem; width: .875rem; transition: transform .3s; }
.service-card:hover .learn-more svg { transform: translateX(4px); }
.cta-card { display: flex; height: 100%; flex-direction: column; justify-content: space-between; border-radius: 1rem; padding: 1.75rem; color: #fff; background-image: linear-gradient(135deg, #ff5f6d 0%, #ff8c42 100%); transition: all .3s; }
.cta-card:hover { transform: translateY(-4px); color: #fff; }
.cta-card h3 { font-size: 1.125rem; font-weight: 800; }
.cta-card p { margin-top: .625rem; font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.85); }
.cta-card .go { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.cta-card .go svg { height: .875rem; width: .875rem; transition: transform .3s; }
.cta-card:hover .go svg { transform: translateX(4px); }

/* ---------- Front page: case study teaser ---------- */
.case-teaser { padding: 5rem 0; }
.case-teaser-grid { display: grid; align-items: center; gap: 3rem; }
@media (min-width: 1024px) { .case-teaser-grid { grid-template-columns: 1fr 1fr; } }
.case-teaser .img-wrap { position: relative; }
.case-teaser .img-wrap .glow { position: absolute; inset: -1.5rem; border-radius: 2rem; background: linear-gradient(to top right, hsla(128,44%,42%,.15), hsla(7,100%,67%,.15)); filter: blur(20px); }
.case-teaser img { position: relative; width: 100%; border-radius: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.case-teaser .badge { position: absolute; bottom: -1.25rem; left: 2rem; border-radius: 9999px; background: var(--primary); padding: .625rem 1.25rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2); }
.case-teaser h2 { margin-top: .75rem; font-size: 1.875rem; font-weight: 800; letter-spacing: -.025em; }
@media (min-width: 640px) { .case-teaser h2 { font-size: 2.25rem; } }
.case-teaser .txt { margin-top: 1.25rem; line-height: 1.75; color: var(--muted-foreground); }
.case-teaser .btn-gradient { margin-top: 2rem; }

/* ---------- Front page: insights preview ---------- */
.insights-preview { padding: 5rem 0; }
.insights-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .insights-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; height: 100%; flex-direction: column; overflow: hidden; }
.post-card .thumb { overflow: hidden; position: relative; }
.post-card .thumb img { aspect-ratio: 2 / 1; width: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.post-card .meta { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--muted-foreground); }
.post-card h3 { margin-top: .5rem; font-size: 1.125rem; font-weight: 800; line-height: 1.4; transition: color .3s; }
.post-card:hover h3 { color: var(--primary); }
.post-card .excerpt { margin-top: .75rem; flex: 1; font-size: .875rem; line-height: 1.7; color: var(--muted-foreground); }
.all-link { margin-top: 2.5rem; text-align: center; }

/* ---------- Front page: testimonials ---------- */
.testimonials { padding: 5rem 0; }
.testimonials-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card { position: relative; display: flex; height: 100%; flex-direction: column; padding: 2rem; }
.testimonial-card::after { content: "\201D"; position: absolute; top: -.5rem; right: 1.75rem; font-size: 100px; font-weight: 900; line-height: 1; color: hsla(128,44%,42%,.1); pointer-events: none; }
.testimonial-card blockquote { position: relative; flex: 1; margin: 0; line-height: 1.75; color: hsla(225,12%,14%,.85); }
.testimonial-card figcaption { margin-top: 1.75rem; display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.testimonial-card .avatar { display: flex; height: 2.75rem; width: 2.75rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9999px; background: hsla(128,44%,42%,.1); font-size: 1.125rem; font-weight: 900; color: var(--primary); }
.testimonial-card .who { font-size: .875rem; font-weight: 800; }
.testimonial-card .role { margin-top: .125rem; font-size: .75rem; line-height: 1.5; color: var(--muted-foreground); }

/* ---------- Front page: clients ---------- */
.clients-strip { padding: 1rem 0 6rem; }
.clients-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
.clients-grid .client { display: flex; height: 100%; align-items: center; justify-content: center; padding: 1.75rem 1.5rem; text-align: center; }
.clients-grid .client span { font-size: .875rem; font-weight: 800; letter-spacing: .025em; color: hsla(225,12%,14%,.7); }

/* ---------- Services archive ---------- */
.services-list { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 6rem; }
.service-row { display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem; }
@media (min-width: 640px) { .service-row { flex-direction: row; align-items: center; padding: 2.5rem; } }
.service-row .icon-tile { height: 4rem; width: 4rem; }
.service-row .icon-tile svg { height: 2rem; width: 2rem; }
.service-row .info { flex: 1; }
.service-row .num { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.service-row h2 { margin-top: .25rem; font-size: 1.5rem; font-weight: 800; }
.service-row .short { margin-top: .625rem; line-height: 1.75; color: var(--muted-foreground); }
.arrow-btn { display: flex; height: 3rem; width: 3rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9999px; border: 2px solid hsla(128,44%,42%,.2); color: var(--primary); transition: all .3s; }
.arrow-btn svg { height: 1.25rem; width: 1.25rem; }
.service-row:hover .arrow-btn { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ---------- Service detail ---------- */
.service-detail { display: grid; gap: 3rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .service-detail { grid-template-columns: 3fr 2fr; } }
.service-detail .body { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: 1.125rem; line-height: 1.75; color: var(--muted-foreground); }
.features-card { padding: 2rem; }
@media (min-width: 1024px) { .features-card { position: sticky; top: 7rem; } }
.features-card h3 { font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.features-card ul { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .875rem; }
.features-card li { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; line-height: 1.6; color: hsla(225,12%,14%,.8); }
.check-dot { margin-top: .125rem; display: flex; height: 1.25rem; width: 1.25rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9999px; background: hsla(128,44%,42%,.15); color: var(--primary); }
.check-dot svg { height: .75rem; width: .75rem; }
.features-card .btn-gradient { margin-top: 2rem; width: 100%; }
.next-service { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; border-radius: 1.5rem; background: var(--dark); padding: 2rem; color: #fff; transition: all .3s; margin-bottom: 6rem; }
.next-service::before { content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background: radial-gradient(400px 200px at 8% 20%, rgba(63,163,77,.22), transparent 70%),
              radial-gradient(360px 180px at 92% 85%, rgba(255,111,97,.18), transparent 70%); }
.next-service > * { position: relative; }
.next-service:hover { transform: translateY(-4px); color: #fff; }
@media (min-width: 640px) { .next-service { padding: 2.5rem; } }
.next-service .k { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; color: rgba(255,255,255,.5); }
.next-service .t { margin-top: .5rem; font-size: 1.5rem; font-weight: 800; }
.next-service .arrow-btn { height: 3.5rem; width: 3.5rem; border: 0; background: rgba(255,255,255,.1); color: #fff; }
.next-service:hover .arrow-btn { background: var(--accent); }

/* ---------- Work page ---------- */
.case-feature { overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--border); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 5rem; }
.case-feature .banner { position: relative; }
.case-feature .banner img { height: 16rem; width: 100%; object-fit: cover; }
@media (min-width: 640px) { .case-feature .banner img { height: 20rem; } }
.case-feature .banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(35,38,43,.8), transparent 60%); }
.case-feature .banner .cap { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; z-index: 1; }
@media (min-width: 640px) { .case-feature .banner .cap { left: 2.5rem; } }
.pill-accent { display: inline-block; border-radius: 9999px; background: var(--accent); padding: .375rem 1rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: #fff; }
.pill-primary { display: inline-block; border-radius: 9999px; background: var(--primary); padding: .375rem 1rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: #fff; }
.case-feature .banner h2 { margin-top: .75rem; font-size: 1.5rem; font-weight: 900; color: #fff; }
@media (min-width: 640px) { .case-feature .banner h2 { font-size: 1.875rem; } }
.case-cols { display: grid; gap: 2.5rem; padding: 2rem; }
@media (min-width: 640px) { .case-cols { padding: 2.5rem; } }
@media (min-width: 1024px) { .case-cols { grid-template-columns: 1fr 1fr; } }
.case-cols .col { display: flex; flex-direction: column; gap: 1.75rem; }
.case-label { font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; color: var(--primary); display: flex; align-items: center; gap: .5rem; }
.case-label svg { height: 1.25rem; width: 1.25rem; }
.case-cols p { margin-top: .625rem; line-height: 1.75; color: var(--muted-foreground); }
.feature-tags { margin-top: .875rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.feature-tags span { border-radius: 9999px; border: 1px solid var(--border); background: var(--background); padding: .375rem .875rem; font-size: .75rem; font-weight: 600; color: hsla(225,12%,14%,.75); }
.outcome-box { border-radius: 1rem; border: 1px solid hsla(128,44%,42%,.15); background: hsla(128,44%,42%,.05); padding: 1.5rem; }
.case-card { overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--border); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.case-card .head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; border-bottom: 1px solid var(--border); background: hsla(40,44%,96%,.6); padding: 1.5rem 2rem; }
.case-card .head .num { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.case-card .head h2 { margin-top: .125rem; font-size: 1.25rem; font-weight: 900; }
@media (min-width: 640px) { .case-card .head h2 { font-size: 1.5rem; } }
.work-cases { display: flex; flex-direction: column; gap: 2.5rem; padding-bottom: 5rem; }
.work-filters { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem; }
.work-filters button { border-radius: 9999px; padding: .5rem 1.25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; border: 1px solid var(--border); background: #fff; color: hsla(225,12%,14%,.6); transition: all .3s; }
.work-filters button:hover { color: var(--foreground); }
.work-filters button.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.work-grid { margin-top: 2.5rem; display: grid; gap: 1.5rem; padding-bottom: 6rem; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { overflow: hidden; }
.work-card .thumb { position: relative; overflow: hidden; }
.work-card .thumb img { aspect-ratio: 57 / 35; width: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .thumb img { transform: scale(1.05); }
.work-card .cat { position: absolute; left: 1rem; top: 1rem; border-radius: 9999px; background: rgba(255,255,255,.9); backdrop-filter: blur(4px); padding: .25rem .75rem; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: hsla(225,12%,14%,.7); }
.work-card .body { padding: 1.5rem; }
.work-card h3 { font-size: 1.125rem; font-weight: 800; }
.work-card .tagline { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }

/* ---------- Insights ---------- */
.featured-post { display: grid; overflow: hidden; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .featured-post { grid-template-columns: 1fr 1fr; } }
.featured-post .thumb { position: relative; overflow: hidden; }
.featured-post .thumb img { height: 100%; min-height: 16rem; width: 100%; object-fit: cover; transition: transform .5s; }
.featured-post:hover .thumb img { transform: scale(1.05); }
.featured-post .thumb .pill-accent { position: absolute; left: 1.25rem; top: 1.25rem; }
.featured-post .body { display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
@media (min-width: 640px) { .featured-post .body { padding: 3rem; } }
.featured-post h2 { margin-top: .75rem; font-size: 1.5rem; font-weight: 900; line-height: 1.3; transition: color .3s; }
@media (min-width: 640px) { .featured-post h2 { font-size: 1.875rem; } }
.featured-post:hover h2 { color: var(--primary); }
.featured-post .excerpt { margin-top: 1rem; line-height: 1.75; color: var(--muted-foreground); }
.posts-grid { display: grid; gap: 1.5rem; padding-bottom: 1rem; }
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
.tag-chip { position: absolute; left: 1rem; top: 1rem; border-radius: 9999px; background: rgba(255,255,255,.9); backdrop-filter: blur(4px); padding: .25rem .75rem; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: hsla(225,12%,14%,.7); }
.insights-note { margin-top: 3rem; padding-bottom: 6rem; text-align: center; font-size: .875rem; color: var(--muted-foreground); }

/* ---------- Single post ---------- */
.post-single { padding-bottom: 6rem; }
.post-hero-img { margin: 0 auto 3rem; max-width: 64rem; border-radius: 1.5rem; overflow: hidden; }
.post-hero-img img { width: 100%; }
.post-content { font-size: 1.0625rem; line-height: 1.85; color: hsla(225,12%,14%,.85); }
.post-content p { margin-bottom: 1.5rem; }
.service-detail .post-content p { margin-bottom: .25rem; }
.post-content h2 { margin: 2.5rem 0 1rem; font-size: 1.625rem; font-weight: 800; }
.post-content h3 { margin: 2rem 0 .75rem; font-size: 1.25rem; font-weight: 800; }
.post-content ul, .post-content ol { margin: 0 0 1.5rem; padding-left: 1.5rem; list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .5rem; }
.post-content img { border-radius: 1rem; margin: 2rem auto; }
.post-content a { color: var(--primary); font-weight: 600; }
.post-content a:hover { text-decoration: underline; }
.post-content blockquote { margin: 2rem 0; border-left: 4px solid var(--primary); padding: .5rem 0 .5rem 1.5rem; font-style: italic; color: var(--muted-foreground); }
.post-content figcaption { text-align: center; font-size: .8125rem; color: var(--muted-foreground); margin-top: -1.25rem; margin-bottom: 2rem; }
.back-link { margin-bottom: 2rem; display: inline-flex; }

/* ---------- About ---------- */
.about-beliefs { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .about-beliefs { grid-template-columns: repeat(3, 1fr); } }
.belief-card { height: 100%; padding: 2rem; }
.belief-card .letter { display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: 1rem; font-size: 1.25rem; font-weight: 900; color: #fff; }
.belief-card h3 { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 800; }
.belief-card p { margin-top: .75rem; font-size: .875rem; line-height: 1.7; color: var(--muted-foreground); }
.about-section { padding-bottom: 5rem; }
.about-section .prose { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; line-height: 1.75; color: var(--muted-foreground); }

/* ---------- About: milestone box (15+ years) ---------- */
.about-milestone { position: relative; overflow: hidden; padding-bottom: 6rem; }
.milestone-box {
  position: relative; border-radius: 2.5rem; border: 1px solid var(--border); background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 3.5rem 2rem; text-align: center;
}
@media (min-width: 640px) { .milestone-box { padding-inline: 3.5rem; } }
.milestone-stat { margin-top: 1.5rem; display: flex; align-items: flex-end; justify-content: center; gap: .75rem; }
.milestone-stat .num {
  background: linear-gradient(to bottom right, var(--primary), var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 96px; font-weight: 900; line-height: 1;
}
@media (min-width: 640px) { .milestone-stat .num { font-size: 150px; } }
.milestone-stat .label { padding-bottom: .75rem; text-align: left; font-size: 1.5rem; font-weight: 800; line-height: 1.25; }
@media (min-width: 640px) { .milestone-stat .label { padding-bottom: 1.5rem; font-size: 1.875rem; } }
.milestone-stat .label em { font-style: normal; color: var(--accent); }
.milestone-dots { margin: 2rem auto 0; display: flex; align-items: center; justify-content: center; gap: .625rem; }
.milestone-dots span { height: .375rem; border-radius: 9999px; }
.milestone-dots .p { width: .375rem; background: var(--primary); }
.milestone-dots .p-bar { width: 2.5rem; background: hsla(128,44%,42%,.3); }
.milestone-dots .a { width: .375rem; background: var(--accent); }
.milestone-dots .a-bar { width: 2.5rem; background: hsla(7,100%,67%,.3); }
.milestone-dots .y { width: .375rem; background: #ffc53d; }
.milestone-text { margin: 2rem auto 0; max-width: 36rem; font-size: 1.125rem; line-height: 1.75; color: var(--muted-foreground); }
.milestone-text strong { font-weight: 800; color: var(--foreground); }
.milestone-box .btn-gradient { margin-top: 2.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; padding-bottom: 6rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 3fr 2fr; } }
.contact-form-card { padding: 2rem; height: fit-content; }
@media (min-width: 640px) { .contact-form-card { padding: 2.5rem; } }
.contact-form-card h2 { font-size: 1.25rem; font-weight: 800; }
.contact-form-card .sub { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.form-label { display: block; margin-bottom: .375rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: hsla(225,12%,14%,.7); }
.form-input {
  width: 100%; border-radius: .75rem; border: 1px solid var(--border); background: #fff;
  padding: .75rem 1rem; font-size: .875rem; font-family: inherit; color: var(--foreground);
  outline: none; transition: all .3s;
}
.form-input::placeholder { color: hsla(225,8%,42%,.6); }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px hsla(128,44%,42%,.2); }
.form-row { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { margin-top: 1.25rem; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.contact-form-card .btn-gradient { margin-top: 1.75rem; }
.form-notice { border-radius: .75rem; padding: .875rem 1.25rem; font-size: .875rem; font-weight: 600; margin-top: 1.5rem; }
.form-notice.ok { background: hsla(128,44%,42%,.1); color: var(--primary); }
.form-notice.err { background: hsla(0,84%,60%,.1); color: hsl(0,84%,45%); }
.contact-side { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-tile { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; }
.contact-tile .icon-tile { border-radius: 1rem; }
.contact-tile.mail .icon-tile { background: hsla(128,44%,42%,.1); color: var(--primary); }
.contact-tile.mail:hover .icon-tile { background: var(--primary); color: #fff; }
.contact-tile.phone .icon-tile { background: hsla(7,100%,67%,.1); color: var(--accent); }
.contact-tile.phone:hover .icon-tile { background: var(--accent); color: #fff; }
.contact-tile.pin .icon-tile { background: hsla(41,86%,56%,.15); color: #d18f1a; }
.contact-tile .k { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--muted-foreground); }
.contact-tile .v { margin-top: .25rem; font-weight: 800; }
.promise-card { position: relative; overflow: hidden; border-radius: 1rem; background: var(--dark); padding: 1.75rem; color: #fff; }
.promise-card::before { content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background: radial-gradient(300px 160px at 8% 20%, rgba(63,163,77,.22), transparent 70%),
              radial-gradient(260px 140px at 92% 85%, rgba(255,111,97,.18), transparent 70%); }
.promise-card > * { position: relative; }
.promise-card .k { font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.5); }
.promise-card p:last-child { margin-top: .75rem; font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.8); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--dark); color: rgba(255,255,255,.8); }
.footer-grid { display: grid; gap: 3rem; padding: 4rem 0 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand .brand-name { color: #fff; display: block; }
.footer-brand .tag { margin-top: .5rem; font-size: .875rem; font-weight: 700; font-style: italic; color: rgba(255,255,255,.6); }
.footer-brand .desc { margin-top: 1.25rem; font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.site-footer h4 { font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; color: #fff; }
.footer-links { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .625rem; font-size: .875rem; }
.footer-links a { transition: color .3s; color: rgba(255,255,255,.8); }
.footer-links a:hover { color: var(--accent); }
.footer-contact { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .875rem; font-size: .875rem; }
.footer-contact li { display: flex; align-items: center; gap: .75rem; }
.footer-contact svg { height: 1.25rem; width: 1.25rem; flex-shrink: 0; color: var(--primary); }
.footer-contact a { transition: color .3s; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { margin-top: 3.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); padding: 1.75rem 0 2rem; font-size: .75rem; color: rgba(255,255,255,.5); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom .motto { font-style: italic; }

/* ---------- Utility sections ---------- */
.section-pad { padding-bottom: 4rem; }
.section-pad-lg { padding-bottom: 6rem; }
.text-muted { color: var(--muted-foreground); }
.text-link { color: var(--primary); font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.center-note { text-align: center; font-size: .875rem; color: var(--muted-foreground); }

/* Icon sizing inside buttons & links */
.btn-gradient svg, .btn-ghost-arrow svg, .btn-outline svg { height: 1rem; width: 1rem; flex-shrink: 0; }
.btn-outline svg { height: .875rem; width: .875rem; }

/* ---------- Post prev/next navigation ---------- */
.post-nav { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav-link { display: flex; flex-direction: column; padding: 1.5rem 1.75rem; }
.post-nav-link.next { text-align: right; }
.post-nav-link .k { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.post-nav-link .t { margin-top: .5rem; font-size: 1.0625rem; font-weight: 800; line-height: 1.4; transition: color .3s; }
.post-nav-link:hover .t { color: var(--primary); }
.post-nav-link .meta { margin-top: .375rem; font-size: .75rem; color: var(--muted-foreground); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem;
  border-radius: 9999px; padding: 0 1rem; border: 1px solid var(--border); background: #fff;
  font-size: .8125rem; font-weight: 700; color: hsla(225,12%,14%,.6); transition: all .3s;
}
a.page-numbers:hover { color: var(--foreground); border-color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.pagination .page-numbers.dots { border: 0; background: transparent; }
.pagination .prev, .pagination .next { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }

/* Partner logos: balanced 2-column grid on small screens */
@media (max-width: 639px) {
  .hero-partners .logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; align-items: center; }
  .hero-partners img { height: 1.75rem; margin-inline: auto; }
  .hero-partners img:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; }
}

/* "Copied!" feedback on email links */
.copied-tag {
  margin-left: .5rem; display: inline-block; border-radius: 9999px;
  background: var(--primary); color: #fff; padding: .125rem .625rem;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  vertical-align: middle; animation: slideFadeIn .2s ease both; transition: opacity .4s;
}
.copied-tag.out { opacity: 0; }
