/* Fincraft: design tokens and layout adapted from the Taxovise template kit */

:root {
  --primary: #1C3F3A;
  --secondary: #0B1816;
  --text: #6E6E6E;
  --accent: #8AAC4C;
  --plum: #9B447C;
  --border: #E0EAE8;
  --bg-light: #EFF5F4;
  --teal: #398177;
  --sand: #EBE8D8;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;

  --fs-small: clamp(0.75rem, 0.7011rem + 0.2174vw, 0.875rem);
  --fs-body: clamp(0.875rem, 0.8261rem + 0.2174vw, 1rem);
  --fs-bold: clamp(0.9375rem, 0.8886rem + 0.2174vw, 1.0625rem);
  --fs-medium: clamp(1rem, 0.9022rem + 0.4348vw, 1.25rem);
  --fs-h5: clamp(1.0625rem, 0.9891rem + 0.3261vw, 1.25rem);
  --fs-h4: clamp(1.25rem, 1.1277rem + 0.5435vw, 1.5625rem);
  --fs-h3: clamp(1.4375rem, 1.2418rem + 0.8696vw, 1.9375rem);
  --fs-h2: clamp(1.6875rem, 1.394rem + 1.3043vw, 2.4375rem);
  --fs-h1: clamp(1.9375rem, 1.4973rem + 1.9565vw, 3.0625rem);
  --fs-hero: clamp(2.3125rem, 1.7255rem + 2.6087vw, 3.8125rem);
  --fs-eyebrow: clamp(0.8125rem, 0.7636rem + 0.2174vw, 0.9375rem);

  --container: 1280px;
  --gutter: clamp(1rem, 3vw, 1.5rem);
  --section-y: clamp(4rem, 2.8rem + 4.5vw, 7rem);
  --topbar-h: 36px;
  --navbar-h: 76px;
  --overlap: clamp(3rem, 2rem + 3vw, 5rem);
  --shadow-sm: 0 8px 24px rgba(11, 24, 22, .07);
  --shadow: 0 15px 40px rgba(11, 24, 22, .1);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--navbar-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
main p > a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--secondary); }
h1, .h1 { font-size: var(--fs-h1); letter-spacing: -1.5px; }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -1px; }
h3, .h3 { font-size: var(--fs-h3); letter-spacing: -1px; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.5px; }
h5, .h5 { font-size: var(--fs-h5); font-weight: 600; line-height: 1.3; letter-spacing: -.3px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 1000; padding: .75rem 1.25rem; background: var(--primary); color: #fff; }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--light { background: var(--bg-light); }
.section--flush-top { padding-top: 0; }
.section-head { max-width: 700px; margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3rem); text-align: center; }
.section-head p { max-width: 600px; margin-inline: auto; }
.lead { font-size: var(--fs-medium); font-weight: 500; line-height: 1.45; color: var(--secondary); }
.eyebrow { display: block; margin: 0 0 .6rem; font-family: var(--font-serif); font-size: var(--fs-eyebrow); font-weight: 600; line-height: 1.5; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); }
.eyebrow--light { color: var(--accent); }
.line { display: block; width: 44px; height: 3px; background: var(--accent); }
.accent-line { display: block; width: 44px; height: 3px; margin-top: 1.1rem; background: var(--plum); }

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 1.05em 1.9em; font-family: var(--font); font-size: var(--fs-small); font-weight: 600; line-height: 1; letter-spacing: .5px; text-align: center; text-transform: uppercase; color: #fff; background: var(--accent); border: 0; border-radius: 0; box-shadow: 0 5px 10px rgba(0, 0, 0, .15); cursor: pointer; transition: background-color .25s var(--ease), box-shadow .25s var(--ease), color .25s; }
.btn:hover { color: #fff; background: var(--plum); box-shadow: 0 2px 5px rgba(0, 0, 0, .15); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--plum { background: var(--plum); }
.btn--plum:hover { background: var(--teal); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.btn--ghost:hover { color: var(--primary); background: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: .85em 1.35em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: calc(-1 * var(--topbar-h)); z-index: 100; background: #fff; transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(11, 24, 22, .08); }
.topbar { position: relative; height: var(--topbar-h); font-size: 13px; }
.topbar::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: max(215px, calc(50% - var(--container) / 2 + 215px)); background: linear-gradient(165deg, var(--primary) 30%, var(--teal) 140%); clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%); }
.topbar__inner { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; height: 100%; }
.topbar__inner a, .topbar__inner span { display: inline-flex; align-items: center; gap: .45rem; color: var(--border); }
.topbar__inner a:hover { color: var(--accent); }
.topbar .icon { flex: none; }
.navbar__inner { display: flex; align-items: center; gap: 1rem; height: var(--navbar-h); }
.logo { display: inline-flex; flex: none; align-items: center; gap: .55rem; color: var(--primary); }
.logo:hover { color: var(--primary); }
.logo__mark svg { width: 38px; height: 38px; }
.logo__stem { fill: var(--primary); }
.logo__word { font-size: 1.75rem; font-weight: 400; line-height: 1; letter-spacing: -1px; color: var(--primary); }
.logo__word b { font-weight: 700; }
.logo__word--light { color: #fff; }

.socials { display: flex; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.socials a { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); transition: background-color .25s, color .25s, border-color .25s; }
.socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.socials--dark a { border-color: rgba(255, 255, 255, .15); }
.navbar__socials { margin-left: 1.5rem; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: block; padding: .75rem .8rem; font-size: 15px; font-weight: 500; color: var(--secondary); }
.nav__link:hover, .nav__link.is-active { color: var(--accent); }
.nav__sub-toggle { display: grid; place-items: center; margin: 0 .25rem 0 -.6rem; padding: .25rem; color: var(--secondary); background: none; border: 0; cursor: pointer; }
.nav__sub-toggle svg { transition: transform .25s; }
.nav__item--dropdown:hover .nav__sub-toggle { color: var(--accent); }
.nav__dropdown { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 250px; margin: 0; padding: .5rem 0; list-style: none; background: #fff; border-top: 3px solid var(--accent); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; }
.nav__item--dropdown:hover > .nav__dropdown,
.nav__item--dropdown:focus-within > .nav__dropdown,
.nav__item--dropdown.is-open > .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a { display: block; padding: .6rem 1.4rem; font-size: 15px; font-weight: 500; color: var(--secondary); transition: background-color .2s, color .2s, padding .2s; }
.nav__dropdown a:hover { padding-left: 1.7rem; color: var(--primary); background: var(--bg-light); }
.nav__dropdown li:last-child a { margin-top: .35rem; padding-top: .8rem; border-top: 1px solid var(--border); color: var(--teal); }
.nav__panel-head, .nav__panel-foot, .nav-toggle, .nav-backdrop { display: none; }
.navbar__cta { flex: none; margin-left: .75rem; }

/* ---------- Home hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: 2rem; color: var(--bg-light); background: var(--primary); }
.hero__bg, .page-hero__bg, .video-cta__bg, .consult__bg, .get-started__bg, .error-page__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(125deg, var(--primary) 25%, rgba(57, 129, 119, .86) 80%); opacity: .92; }
.hero__inner { display: grid; grid-template-columns: 55fr 45fr; align-items: end; }
.hero__content { align-self: center; padding: clamp(3rem, 2rem + 4vw, 5rem) clamp(0rem, 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5rem) 0; }
.hero .eyebrow { color: #fff; }
.hero__title { margin-bottom: 1.25rem; font-size: var(--fs-hero); line-height: 1.1; letter-spacing: -1.5px; color: #fff; }
.hero__text { max-width: 560px; margin-bottom: 2rem; font-size: var(--fs-medium); font-weight: 500; color: var(--bg-light); }
.hero__divider { max-width: 560px; margin: 2.25rem 0 1.5rem; border: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero__checks { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; padding: 0; list-style: none; font-size: var(--fs-bold); font-weight: 600; color: #fff; }
.hero__checks li { display: flex; align-items: center; gap: .55rem; }
.hero__checks .icon { color: var(--accent); }
.hero__media { display: flex; align-self: end; justify-content: center; }
.hero__media img { width: min(100%, 470px); }

/* ---------- Inner page hero ---------- */

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 2.5rem + 5vw, 8rem); color: var(--border); background: var(--primary); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(125deg, var(--primary) 25%, rgba(57, 129, 119, .86) 80%); opacity: .93; }
.page-hero::after { content: ""; position: absolute; right: 0; bottom: -1px; width: min(500px, 40%); height: clamp(15px, 2.2vw, 30px); background: #fff; clip-path: polygon(clamp(8px, 1.2vw, 16px) 0, 100% 0, 100% 100%, 0 100%); }
.page-hero__content { max-width: 780px; padding-left: clamp(0rem, 2.5vw, 2rem); }
.page-hero h1 { margin-bottom: .45em; color: #fff; }
.page-hero__lead { max-width: 640px; margin-bottom: 1.5rem; padding-left: 1rem; font-size: var(--fs-bold); color: var(--border); border-left: 3px solid var(--accent); }
.page-hero__kicker { display: inline-block; margin-bottom: 1rem; padding-left: .7rem; font-family: var(--font-serif); font-size: var(--fs-eyebrow); font-weight: 600; line-height: 1.2; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; border-left: 3px solid var(--accent); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .55rem; }
.breadcrumb li + li::before { content: ""; border-left: 6px solid var(--accent); border-block: 5px solid transparent; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--border); }
.breadcrumb--dark { margin-bottom: 1.75rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
.breadcrumb--dark a { color: var(--secondary); }
.breadcrumb--dark [aria-current] { color: var(--text); }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); color: #fff; }
.post-meta li { display: inline-flex; align-items: center; gap: .45rem; }
.post-meta .icon { color: var(--accent); }

/* ---------- About / features ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-media { position: relative; margin-left: 8px; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-media__quote { position: absolute; bottom: 7%; left: -8px; max-width: 58%; margin: 0; padding: 1rem 1.25rem; font-size: var(--fs-bold); font-weight: 600; line-height: 1.35; color: var(--secondary); background: #fff; border-left: 4px solid var(--plum); box-shadow: var(--shadow-sm); }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.75rem 0 2rem; }
.feature-stack { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.feature { display: flex; align-items: flex-start; gap: 1rem; }
.feature__icon { display: grid; flex: none; place-items: center; width: 54px; height: 54px; color: #fff; background: var(--accent); border-radius: 50%; }
.feature__icon--plum { background: var(--plum); }
.feature__title { margin: 0 0 .3rem; font-size: var(--fs-bold); font-weight: 600; line-height: 1.3; letter-spacing: -.2px; }
.feature p { margin: 0; font-size: var(--fs-small); }

.industries { display: flex; align-items: center; gap: 2rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--border); }
.industries__title { flex: 0 0 20%; margin: 0; font-size: var(--fs-h5); font-weight: 600; line-height: 1.3; letter-spacing: -.3px; color: var(--secondary); }
.industries__list { display: grid; flex: 1; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.industries__list li { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-small); font-weight: 600; color: #6f7876; }
.industries__list .icon { flex: none; color: var(--teal); }

/* ---------- Banners ---------- */

.video-cta { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); background: var(--primary); border-bottom: 3px solid var(--primary); }
.video-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 63, 58, .5); }
.video-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 63, 58, .96); clip-path: polygon(0 0, 55% 0, 44.5% 100%, 0 100%); }
.video-cta__inner { position: relative; display: flex; align-items: center; min-height: 260px; }
.video-cta__content { max-width: 45%; color: var(--border); }
.video-cta h2 { color: #fff; }
.video-cta p { margin-bottom: 1.75rem; }
.play-btn { position: absolute; top: 50%; left: 72%; display: grid; place-items: center; width: 84px; height: 84px; color: #fff; background: transparent; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255, 255, 255, .12); cursor: pointer; transform: translate(-50%, -50%); transition: color .3s, box-shadow .3s; }
.play-btn:hover { color: var(--accent); box-shadow: 0 0 0 16px rgba(255, 255, 255, .15); }
.play-btn .icon { margin-left: 4px; }

.consult { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); color: var(--border); background: var(--secondary); }
.consult::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 24, 22, .7); }
.consult__content { max-width: 40%; margin-left: auto; }
.consult h2 { color: #fff; }
.consult p { margin-bottom: 1.75rem; }

.get-started { position: relative; isolation: isolate; display: flow-root; margin-bottom: var(--overlap); padding-top: var(--section-y); text-align: center; color: var(--border); background: var(--secondary); }
.get-started::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 24, 22, .65); }
.get-started__content { max-width: 660px; margin-inline: auto; }
.get-started h2 { color: #fff; }
.get-started p { margin-bottom: 1.75rem; }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(3rem, 2rem + 3vw, 6rem); margin-bottom: calc(-1 * var(--overlap)); padding: 1.75rem 1rem; background: #fff; border-bottom: 3px solid var(--plum); box-shadow: 0 20px 45px rgba(11, 24, 22, .12); }
.stat { display: flex; flex-direction: column; align-items: center; padding: .25rem 1rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat__num { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -1px; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-bold); font-weight: 600; color: var(--secondary); }

/* ---------- Services ---------- */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.service-card__head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); }
.service-card__title { align-self: center; margin: 0; padding: 1.25rem .75rem 1.25rem 30px; font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.5px; }
.service-card__title a { color: var(--secondary); }
.service-card__title a:hover { color: var(--accent); }
.service-card__icon { display: grid; flex: none; place-items: center; width: 84px; min-height: 70px; padding-left: 12px; color: #fff; background: var(--accent); clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%); }
.service-card__body { flex: 1; padding: 1.5rem 30px 1.75rem; }
.service-card__body > p { margin-bottom: 1.25rem; }
.service-card > .btn { box-shadow: none; }
.service-card--cta { justify-content: center; padding: 2.5rem 30px; color: var(--border); background: var(--primary); }
.service-card--cta h3 { color: #fff; }
.service-card--cta p { margin-bottom: 1.75rem; }
.service-card--cta .btn { align-self: flex-start; }
.check-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; }
.check-list .icon { flex: none; margin-top: .15em; color: var(--accent); }
.check-list--lg { margin-top: 1.25rem; }
.check-list--lg li { font-weight: 500; color: var(--secondary); }

/* ---------- Process ---------- */

.process { position: relative; isolation: isolate; overflow: hidden; }
.process::before { content: ""; position: absolute; top: 50%; left: 50%; z-index: -1; width: min(810px, 95vw); aspect-ratio: 810 / 775; background: url(../img/pattern-dots-810.webp) center / contain no-repeat; opacity: .07; transform: translate(-50%, -50%); pointer-events: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 70px 30px 30px; background: #fff; border: 1px dashed #cbd9d6; transition: border-color .3s; }
.step:hover { border-color: var(--accent); }
.step__label { position: absolute; top: -1px; right: -1px; left: -1px; padding: .6rem; font-size: var(--fs-small); font-weight: 700; line-height: 1.2; letter-spacing: .5px; text-align: center; text-transform: uppercase; color: #fff; background: var(--accent); }
.step:first-child .step__label { background: var(--primary); }
.step__title { margin: 0 0 .4rem; font-size: var(--fs-bold); font-weight: 600; letter-spacing: -.2px; }

/* ---------- Why choose us ---------- */

.why-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.why-media__tile { position: relative; display: flex; overflow: hidden; aspect-ratio: 9 / 16; }
.why-media__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-media__overlay { position: relative; width: 100%; margin-top: auto; padding: 70px clamp(1rem, 2vw, 1.6rem) clamp(1.5rem, 3vw, 2.5rem); color: #fff; background: linear-gradient(180deg, rgba(28, 63, 58, 0) 0%, rgba(28, 63, 58, .94) 42%); }
.why-media__overlay p { margin: 1rem 0 0; font-size: var(--fs-bold); font-weight: 600; line-height: 1.4; }
.why-media__img { margin-top: 30px; border: 6px solid #fff; box-shadow: var(--shadow-sm); }
.why-media__img img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

/* ---------- Case studies ---------- */

.cases-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(1.75rem, 1.5rem + 1vw, 2.5rem); }
.cases-head h2 { margin: 0; }
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.case-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 350px; padding: 30px; color: #fff; }
.case-tile:hover { color: #fff; }
.case-tile--wide { grid-column: span 2; }
.case-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.case-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 24, 22, .08) 25%, rgba(11, 24, 22, .82) 100%); }
.case-tile:hover img { transform: scale(1.06); }
.case-tile--solid { background: var(--primary); }
.case-tile--solid::before { display: none; }
.case-tile .line { margin-bottom: 1.25rem; }
.case-tile__cat { margin-bottom: .35rem; font-size: 13px; font-weight: 600; color: var(--sand); }
.case-tile__title { max-width: 420px; margin: 0; font-size: var(--fs-h5); font-weight: 600; line-height: 1.3; letter-spacing: -.3px; color: #fff; }

.case-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: #fff; border-top: 3px solid var(--accent); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--navbar-h) + 24px); }
.case-card:target { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.case-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; font-size: var(--fs-small); font-weight: 600; color: var(--teal); }
.chip { display: inline-block; padding: .3rem .7rem; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #fff; background: var(--plum); }
.case-card h3 { font-size: var(--fs-h4); letter-spacing: -.5px; }
.case-card__dl { display: grid; gap: 1rem; margin: 1.25rem 0 1.5rem; }
.case-card__dl dt { margin-bottom: .2rem; font-size: var(--fs-small); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--secondary); }
.case-card__dl dd { margin: 0; }
.case-card__link { font-weight: 600; color: var(--primary); border-bottom: 2px solid var(--accent); }

/* ---------- Testimonials ---------- */

.testimonial { display: grid; grid-template-columns: 3fr 7fr; gap: 1rem; align-items: center; }
.testimonial__media { position: relative; align-self: end; }
.testimonial__media img { width: 100%; max-width: 380px; margin-inline: auto; }
.testimonial__badge { position: absolute; top: 38%; right: 4%; display: grid; place-items: center; width: 66px; height: 66px; color: #fff; background: var(--accent); border: 4px solid #fff; border-radius: 50%; box-shadow: var(--shadow-sm); }
.testimonial__box { padding: 15px; background: var(--bg-light); }
.testimonial__inner { position: relative; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border: 1px dashed #c9d8d5; }
.testimonial__inner h2 { margin-bottom: 1rem; font-size: var(--fs-h3); }
.testimonial__slides { display: grid; }
.testimonial__slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.testimonial__slide.is-active { opacity: 1; visibility: visible; }
.testimonial__slide blockquote { max-width: 88%; margin: 0 0 1.5rem; }
.testimonial__author { display: flex; align-items: center; gap: 1rem; }
.testimonial__avatar { flex: none; width: 56px; height: 56px; object-fit: cover; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
.testimonial__avatar--initials { display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--primary); }
.testimonial__name { display: block; font-size: var(--fs-bold); font-weight: 600; color: var(--secondary); }
.testimonial__role { display: block; font-size: var(--fs-small); color: var(--plum); }
.testimonial__dots { display: flex; gap: .25rem; margin-top: 1.25rem; }
.testimonial__dots button { display: grid; place-items: center; width: 28px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; }
.testimonial__dots button::before { content: ""; width: 10px; height: 10px; background: #c3d3cf; border-radius: 5px; transition: width .3s, background-color .3s; }
.testimonial__dots button[aria-current="true"]::before { width: 24px; background: var(--accent); }
.testimonial__mark { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2rem); width: clamp(48px, 6vw, 72px); height: auto; color: #d5e2df; }

/* ---------- Blog ---------- */

.news-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-bottom: 2rem; }
.news-head h2 { margin: 0; }
.posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.post-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__date { position: absolute; bottom: 10px; left: 10px; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .6rem; font-size: 12px; font-weight: 500; color: #fff; background: rgba(11, 24, 22, .62); }
.post-card__date .icon { color: var(--accent); }
.post-card__title { margin: 1rem 0 .5rem; font-size: var(--fs-bold); font-weight: 600; line-height: 1.35; letter-spacing: -.2px; }
.post-card__title a { color: var(--secondary); }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt { display: -webkit-box; margin: 0; overflow: hidden; font-size: var(--fs-small); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

.blog-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.blog-filter[hidden] { display: none; }
.blog-filter button { padding: .6rem 1.1rem; font-size: var(--fs-small); font-weight: 600; color: var(--secondary); background: #fff; border: 1px solid var(--border); cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.blog-filter button:hover { color: var(--accent); border-color: var(--accent); }
.blog-filter button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-card[hidden] { display: none; }
.blog-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__cat { position: absolute; top: 0; left: 0; padding: .45rem .8rem; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--plum); }
.blog-card__meta { position: absolute; bottom: 14px; left: 14px; display: flex; gap: .4rem; }
.blog-card__meta span { padding: .3rem .55rem; font-size: 12px; color: #fff; background: rgba(11, 24, 22, .58); }
.blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem 1.5rem 1.75rem; }
.blog-card__title { margin-bottom: .6rem; font-size: var(--fs-h5); line-height: 1.35; letter-spacing: -.3px; }
.blog-card__title a { color: var(--secondary); }
.blog-card__title a:hover { color: var(--accent); }
.blog-card__body > p { margin-bottom: 1.5rem; font-size: var(--fs-small); }
.blog-card__body .btn { align-self: flex-start; margin-top: auto; }
.blog-empty { text-align: center; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(1.75rem, 1rem + 3vw, 3rem); background: var(--bg-light); border-left: 4px solid var(--accent); }
.cta-band__title { margin-bottom: .5rem; font-size: var(--fs-h3); }
.cta-band p { max-width: 620px; margin: 0; }
.cta-band .btn { flex: none; }
.hp { position: absolute; left: -9999px; }

/* ---------- FAQ ---------- */

.faq-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.faq-list { margin-top: 1.5rem; border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq__q { margin: 0; font-size: var(--fs-bold); font-weight: 500; line-height: 1.4; letter-spacing: -.2px; color: var(--secondary); transition: color .2s; }
.faq summary:hover .faq__q, .faq[open] .faq__q { color: var(--teal); }
.faq__icon { flex: none; color: var(--accent); }
.faq__minus, .faq[open] .faq__plus { display: none; }
.faq[open] .faq__minus { display: block; }
.faq[open] summary { margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.faq__a { padding: 0 2.5rem 1.25rem 0; }
.faq-media { position: relative; display: flex; overflow: hidden; min-height: 420px; }
.faq-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faq-media__overlay { position: relative; width: 100%; margin-top: auto; padding: 2rem 1.75rem; color: #fff; background: rgba(28, 63, 58, .93); }
.faq-media__overlay p { margin: 1rem 0 0; font-size: var(--fs-bold); font-weight: 500; line-height: 1.4; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.team-card { position: relative; overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover img { transform: scale(1.04); }
.team-card__info { position: absolute; right: 0; bottom: 0; left: 0; padding: 1.7rem 3.75rem 1rem 1.25rem; color: #fff; background: var(--accent); clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%); }
.team-card__name { margin: 0; font-size: var(--fs-bold); font-weight: 600; letter-spacing: -.2px; color: #fff; }
.team-card__role { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .92); }
.team-card__mail { position: absolute; right: 1.1rem; bottom: 1.1rem; color: #fff; }
.team-card__mail:hover { color: var(--primary); }

/* ---------- About page ---------- */

.attention { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.attention__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.value-card { padding: 2rem 1.75rem; background: #fff; border-bottom: 3px solid transparent; box-shadow: var(--shadow-sm); transition: border-color .3s, transform .3s; }
.value-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.value-card h3 { margin: 1.25rem 0 .5rem; font-size: var(--fs-h5); }

/* ---------- Services page ---------- */

.what-we-do { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.what-we-do p { margin-bottom: 1.75rem; }
.what-we-do__media { position: relative; }
.what-we-do__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.experience-badge { position: absolute; bottom: 0; left: 0; display: flex; align-items: center; gap: .75rem; margin: 0; padding: 1rem 1.5rem; background: #fff; border-left: 4px solid var(--accent); box-shadow: var(--shadow-sm); }
.experience-badge strong { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -1px; color: var(--accent); }
.experience-badge span { font-weight: 600; line-height: 1.25; color: var(--secondary); }

/* ---------- Service detail ---------- */

.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem clamp(2rem, 5vw, 5rem); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.wide-media { position: relative; }
.wide-media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.wide-media .play-btn { left: 50%; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.offer-card { padding: 2rem 1.75rem; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s; }
.offer-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.offer-card h3 { margin: 1.25rem 0 .5rem; font-size: var(--fs-h5); }
.approach { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cta-card { position: sticky; top: calc(var(--navbar-h) + 24px); padding: 2rem; color: var(--border); background: var(--primary); }
.cta-card h2 { color: #fff; }
.cta-card__contact { display: grid; gap: .7rem; margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; }
.cta-card__contact a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; color: #fff; word-break: break-word; }
.cta-card__contact a:hover { color: var(--accent); }
.cta-card__contact .icon { flex: none; color: var(--accent); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.related-card { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s; }
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.related-card__icon { display: grid; place-items: center; width: 58px; height: 54px; margin-bottom: 1.25rem; padding-left: 8px; color: #fff; background: var(--accent); clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); }
.related-card h3 { margin-bottom: .5rem; font-size: var(--fs-h5); }
.related-card h3 a { color: var(--secondary); }
.related-card h3 a::after { content: ""; position: absolute; inset: 0; }
.related-card:hover h3 a { color: var(--accent); }
.related-card p { margin-bottom: 1rem; font-size: var(--fs-small); }
.related-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-size: var(--fs-small); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }

/* ---------- Pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow); }
.plan__head { position: relative; padding: 1.75rem 1.75rem 3rem; color: var(--border); background: var(--primary); clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.plan--featured .plan__head { color: #fff; background: var(--accent); }
.plan__badge { position: absolute; top: 1.25rem; right: 1.25rem; padding: .3rem .6rem; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--plum); }
.plan__name { margin-bottom: .5rem; font-size: var(--fs-h4); color: #fff; }
.plan__head p { margin: 0; font-size: var(--fs-small); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 0 1.75rem; padding: 1.25rem 0 1.5rem; border-bottom: 1px dashed #cbd9d6; }
.plan__amount { font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); font-weight: 700; line-height: 1; letter-spacing: -1.5px; color: var(--accent); }
.plan__period { font-size: var(--fs-small); font-weight: 500; color: var(--secondary); }
.plan__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem 1.75rem 2rem; }
.plan__features-title { margin-bottom: .9rem; font-weight: 600; color: var(--secondary); }
.plan__body .check-list { margin-bottom: 2rem; }
.plan__body .btn { margin-top: auto; }
.pricing-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none; font-weight: 600; color: var(--secondary); }
.pricing-perks li { display: inline-flex; align-items: center; gap: .5rem; }
.pricing-perks .icon { color: var(--accent); }
.project-note { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--bg-light); border-left: 4px solid var(--accent); }
.project-note h3 { margin-bottom: .4rem; font-size: var(--fs-h4); }
.project-note p { max-width: 720px; margin: 0; }
.project-note .btn { flex: none; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-card { --pad: clamp(1.5rem, 1rem + 2vw, 2.5rem); padding: 0 var(--pad) 1.5rem; background: #fff; border-bottom: 4px solid var(--accent); box-shadow: var(--shadow); }
.contact-card__media { position: relative; margin: 0 calc(-1 * var(--pad)) .5rem; }
.contact-card__media img { width: 100%; height: 210px; object-fit: cover; }
.contact-card__media::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 60%; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.contact-card__item { padding: 1.25rem 0; }
.contact-card__item + .contact-card__item { border-top: 1px solid var(--border); }
.contact-card__item h2 { margin-bottom: .35rem; }
.contact-card__item p, .contact-card__item address { margin: 0; }
.contact-card__item a { color: var(--text); text-decoration: none; word-break: break-word; }
.contact-card__item a:hover { color: var(--accent); }
.contact-form { margin-top: 1.75rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; color: var(--secondary); }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; color: var(--secondary); background: #fff; border: 1px solid var(--border); border-radius: 0; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: #9aa2a0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(138, 172, 76, .28); }
.field select { padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238AAC4C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; appearance: none; }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { margin: 1rem 0; font-size: var(--fs-small); }
.form-note a { color: var(--primary); text-decoration: underline; }
.form-status { margin: 1rem 0 0; padding: 1rem 1.25rem; font-weight: 500; color: var(--secondary); background: var(--bg-light); border-left: 4px solid var(--accent); }
.form-status[hidden] { display: none; }
.map iframe { display: block; width: 100%; height: 450px; border: 0; }

/* ---------- Article ---------- */

.post-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.post .prose > p:first-child::first-letter { float: left; margin: .06em .12em 0 0; font-size: 3.6em; font-weight: 500; line-height: .85; color: var(--secondary); }
.prose h2 { margin: 2.25rem 0 .8rem; font-size: var(--fs-h4); letter-spacing: -.5px; }
.prose h3 { margin: 1.75rem 0 .6rem; font-size: var(--fs-h5); }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { font-weight: 700; color: var(--accent); }
.prose strong { font-weight: 600; color: var(--secondary); }
.prose a { font-weight: 500; color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--accent); }
.prose blockquote p { font-size: var(--fs-h5); font-weight: 500; line-height: 1.45; letter-spacing: -.2px; color: var(--secondary); }
.prose figure { margin: 2rem 0; }
.prose figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose .figure--portrait img { object-position: center 30%; }
.table-wrap { margin: 1.5rem 0; overflow-x: auto; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--fs-small); }
.prose th, .prose td { padding: .8rem 1rem; text-align: left; vertical-align: top; border: 1px solid var(--border); }
.prose thead th { font-weight: 600; color: #fff; background: var(--primary); }
.prose tbody th { font-weight: 600; color: var(--secondary); background: var(--bg-light); }
.prose--legal { max-width: 820px; margin-inline: auto; }
.prose__updated { font-size: var(--fs-small); font-weight: 600; color: var(--teal); }
.post__disclaimer { margin: 2rem 0 0; padding: 1rem 1.25rem; font-size: var(--fs-small); font-style: italic; background: var(--bg-light); }
.post__disclaimer a { color: var(--primary); text-decoration: underline; }
.post__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.post__tags { margin: 0; font-size: var(--fs-small); }
.post__tags strong { color: var(--secondary); }
.share { display: flex; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.share a, .share button { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--accent); border: 0; border-radius: 50%; cursor: pointer; transition: background-color .25s; }
.share a:hover, .share button:hover { color: #fff; background: var(--plum); }
.share button.is-copied { background: var(--primary); }
.author-box { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.author-box__avatar { display: grid; flex: none; place-items: center; width: 72px; height: 72px; background: var(--bg-light); border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(0, 0, 0, .08); }
.author-box__avatar svg { width: 38px; height: 38px; }
.author-box__title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--teal); }
.author-box__name { margin: .1rem 0 .4rem; font-size: var(--fs-bold); font-weight: 600; color: var(--secondary); }
.author-box p:last-child { font-size: var(--fs-small); }

.sidebar { display: grid; gap: 1.75rem; }
.widget { background: #fff; border: 1px solid var(--bg-light); }
.widget__title { margin: 0; padding: .95rem 1.25rem; font-size: var(--fs-h5); letter-spacing: -.3px; background: var(--bg-light); }
.widget__posts, .widget__cats { margin: 0; padding: .5rem 1.25rem; list-style: none; }
.widget__posts li { padding: .9rem 0; }
.widget__posts li + li { border-top: 1px solid var(--border); }
.widget__date { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; font-size: 12px; }
.widget__date .icon { color: var(--accent); }
.widget__posts a { font-size: var(--fs-small); font-weight: 600; line-height: 1.4; color: var(--secondary); }
.widget__posts a:hover { color: var(--accent); }
.widget__cats li { display: flex; justify-content: space-between; padding: .55rem 0; }
.widget__cats a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--text); }
.widget__cats a::before { content: "»"; font-weight: 700; color: var(--accent); }
.widget__cats a:hover { color: var(--accent); }
.widget__cats span { align-self: center; padding: .1rem .5rem; font-size: 12px; color: var(--teal); background: var(--bg-light); }
.widget--cta { padding: 1.75rem 1.5rem; color: var(--border); background: var(--primary); border: 0; }
.widget--cta h2 { margin: 1rem 0 .5rem; color: #fff; }
.widget--cta p { margin-bottom: 1.25rem; font-size: var(--fs-small); }

/* ---------- 404 / thank you ---------- */

.error-page { position: relative; isolation: isolate; display: flex; justify-content: center; overflow: hidden; min-height: min(80vh, 760px); padding-inline: var(--gutter); text-align: center; background: var(--primary); }
.error-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(125deg, var(--primary) 25%, rgba(57, 129, 119, .86) 80%); opacity: .93; }
.error-page__box { display: flex; flex-direction: column; justify-content: center; width: min(560px, 100%); padding: clamp(3rem, 2rem + 6vw, 8rem) clamp(1.5rem, 1rem + 3vw, 3rem); color: var(--border); background: rgba(28, 63, 58, .75); }
.error-page__code { margin: 0; font-size: clamp(4.5rem, 3rem + 6vw, 8rem); font-weight: 700; line-height: 1; letter-spacing: -3px; color: #fff; }
.error-page--thanks .error-page__code { margin-bottom: .5rem; font-size: clamp(2.5rem, 2rem + 3vw, 4rem); letter-spacing: -1.5px; }
.error-page__title { margin-bottom: 1rem; font-size: var(--fs-h2); color: #fff; }
.error-page p a { color: #fff; text-decoration: underline; }
.error-page .line { width: 70px; margin: 1.75rem auto; }

/* ---------- Footer ---------- */

.site-footer { padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); font-size: var(--fs-small); color: #e9efee; background: var(--secondary); }
.site-footer .logo__stem { fill: #fff; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: 2.5rem; padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.footer__brand p { max-width: 340px; margin: 1.25rem 0; }
.footer__contact { display: grid; gap: .6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.footer__contact a { display: inline-flex; align-items: center; gap: .55rem; color: #fff; }
.footer__contact a:hover { color: var(--accent); }
.footer__contact .icon { color: var(--accent); }
.footer__title { margin: 0 0 1.1rem; font-size: var(--fs-h5); font-weight: 600; letter-spacing: -.3px; color: #fff; }
.footer__col address + .footer__title { margin-top: 1.5rem; }
.footer__col ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.footer__col a { color: #e9efee; }
.footer__col a:hover { color: var(--accent); }
.footer__col address, .footer__col p { line-height: 1.6; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; margin: 0; padding: 0; list-style: none; }
.footer__legal li + li::before { content: "|"; margin: 0 .75rem; color: rgba(255, 255, 255, .3); }
.footer__legal a { color: #e9efee; }

/* ---------- Video modal ---------- */

.video-modal { width: min(960px, 92vw); padding: 0; overflow: visible; background: #000; border: 0; }
.video-modal::backdrop { background: rgba(11, 24, 22, .85); }
.video-modal__frame { aspect-ratio: 16 / 9; }
.video-modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; top: -48px; right: 0; display: grid; place-items: center; width: 40px; height: 40px; color: var(--secondary); background: #fff; border: 0; cursor: pointer; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */

@keyframes reveal-up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal-failsafe { to { opacity: 1; } }
.js .reveal:not(.is-visible) { opacity: 0; }
/* If the script never runs, show everything after a moment. */
.js:not(.reveal-ready) .reveal { animation: reveal-failsafe 0s 2.5s forwards; }
.js .reveal.is-visible { animation: reveal-up .8s var(--ease) var(--reveal-delay, 0ms) both; }

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .navbar__socials { display: none; }
  .nav__link { padding-inline: .6rem; }
}

@media (max-width: 1100px) {
  .navbar__cta { margin-left: auto; }
  .nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; margin-left: .5rem; color: #fff; background: var(--primary); border: 0; cursor: pointer; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; display: flex; flex-direction: column; width: min(360px, 88vw); margin: 0; padding: 1.25rem 1.5rem 2rem; overflow-y: auto; visibility: hidden; background: #fff; transform: translateX(100%); transition: transform .35s var(--ease), visibility .35s; }
  .nav-open .nav { visibility: visible; transform: none; }
  .nav__panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
  .nav__close { display: grid; place-items: center; width: 42px; height: 42px; color: var(--secondary); background: var(--bg-light); border: 0; cursor: pointer; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  .nav__link { flex: 1; padding: .9rem 0; font-size: 16px; }
  .nav__sub-toggle { width: 42px; height: 42px; margin: 0; }
  .nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav__dropdown { position: static; display: none; flex-basis: 100%; min-width: 0; padding: 0 0 .75rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav__item--dropdown.is-open > .nav__dropdown { display: block; }
  .nav__dropdown a { padding: .5rem 1rem; }
  .nav__panel-foot { display: grid; gap: .9rem; margin-top: 1.75rem; }
  .nav__panel-foot a:not(.btn) { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--secondary); word-break: break-word; }
  .nav__panel-foot .icon { flex: none; color: var(--accent); }
  .nav-backdrop { position: fixed; inset: 0; z-index: 90; display: block; visibility: hidden; background: rgba(11, 24, 22, .5); opacity: 0; transition: opacity .3s, visibility .3s; }
  .nav-open .nav-backdrop { visibility: visible; opacity: 1; }
  .topbar__inner span { display: none; }
}

@media (max-width: 1024px) {
  .services-grid, .offer-grid, .blog-grid, .posts-grid, .team-grid, .values-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .industries { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .industries__list { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .faq-layout, .post-layout, .approach { grid-template-columns: 1fr; }
  .faq-media { min-height: 320px; }
  .cta-card { position: static; }
  .consult__content, .video-cta__content { max-width: 60%; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { padding: 2.5rem 0 1rem; }
  .hero__media img { width: min(80%, 340px); }
  .split, .what-we-do, .attention, .contact-grid, .overview, .cases-head, .testimonial { grid-template-columns: 1fr; }
  .testimonial__media { order: 2; width: min(100%, 300px); margin-inline: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .case-list { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .consult__content, .video-cta__content { max-width: none; }
  .video-cta::after { clip-path: none; }
  .video-cta__inner { flex-direction: column; align-items: flex-start; min-height: 0; }
  .video-cta .play-btn { position: relative; top: auto; left: auto; margin-top: 2.5rem; transform: none; }
  .project-note { flex-direction: column; align-items: flex-start; }
  .why-media { max-width: 560px; }
}

@media (max-width: 767px) {
  .services-grid, .offer-grid, .blog-grid, .posts-grid, .related-grid, .steps, .values-grid, .cases-grid { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat:nth-child(3) { border-left: 0; }
  .feature-pair, .form-grid, .footer__grid { grid-template-columns: 1fr; }
  .case-tile--wide { grid-column: auto; }
  .case-tile { min-height: 280px; }
  .industries__list { grid-template-columns: repeat(2, 1fr); }
  .team-grid { gap: 12px; }
  .team-card__info { padding: 1.4rem 2.6rem .8rem .9rem; }
  .team-card__mail { right: .8rem; bottom: .9rem; }
  .about-media { margin-left: 0; }
  .about-media__quote { position: relative; bottom: auto; left: auto; max-width: none; margin: -2.5rem 1rem 0; }
  .wide-media img { aspect-ratio: 4 / 3; }
  .page-hero__content { padding-left: 0; }
  .post__footer, .footer__bottom { flex-direction: column; align-items: flex-start; }
  .service-card__title, .service-card__body { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 600px) {
  :root { --topbar-h: 0px; --navbar-h: 66px; }
  .topbar { display: none; }
  .navbar__cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .logo__word { font-size: 1.5rem; }
  .logo__mark svg { width: 32px; height: 32px; }
  .hero__checks { flex-direction: column; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .js .reveal:not(.is-visible) { opacity: 1; }
}
