/* ==========================================================================
   Olsamtech light theme
   Loaded last on every public page. Light-grey canvas, white rounded sheets,
   green pill buttons, DM Sans type, brand green kept for small accents.
   ========================================================================== */

:root {
  /* DM Sans (Google Fonts), weights 300–700 */
  --font-sans: 'DM Sans';
  --bg: #E5E9EB;
  --bg-panel: #FFFFFF;
  --bg-panel-hover: #F6F7F8;
  --bg-panel-2: #EFF2F3;
  --ink: #0B0B0C;
  --muted: #4F545B;
  --muted-dim: #8A8F96;
  --accent: #16A34A;
  --brand: #16A34A;
  --brand-hover: #15803D;
  --accent-soft: #15803D;
  --accent-bright: #16A34A;
  --line: rgba(11, 11, 12, 0.1);
  --line-strong: rgba(11, 11, 12, 0.2);
  --radius-sheet: 2rem;
  --radius-card: 22px;
}


html, body { background: var(--bg); color: var(--ink); }
body { font-size: 1.25rem; letter-spacing: -0.025rem; }
p { line-height: 1.2; }
body, button, input, select, textarea { font-family: var(--font-sans), system-ui, sans-serif; }
h1, h2, h3, h4 { font-family: var(--font-sans), system-ui, sans-serif; color: var(--ink); font-weight: 500; letter-spacing: -0.05rem; line-height: 1.1; }
::selection { background: var(--ink); color: #fff; }

/* ---------- Buttons: pills ---------- */
.btn { font-family: var(--font-sans), sans-serif; font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02rem; padding: 0.85rem 1.6rem; border-radius: 999px; }
.btn-primary, a.btn-primary, button.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.btn-primary:hover, a.btn-primary:hover, button.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); box-shadow: 0 16px 32px -14px rgba(22, 163, 74, 0.55); transform: translateY(-2px); }
.btn-ghost { background: var(--bg); border-color: transparent; color: var(--ink); }
.btn-ghost:hover { background: #DADEE2; border-color: transparent; color: var(--ink); }

/* ---------- Kicker: "• Label" ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans), sans-serif; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.025rem;
  letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 20px;
}
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }

/* ---------- Header ---------- */
header#siteHeader, header#siteHeader.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 0; box-shadow: none;
}
header#siteHeader.scrolled { box-shadow: 0 1px 0 var(--line); }
header#siteHeader nav, header#siteHeader.scrolled nav { max-width: 82.5rem; height: 5rem; padding: 0 1.5rem; }
header#siteHeader .logo img { height: 36px; }
.nav-links { gap: 3.5rem; }
.nav-links a { font-size: 1.1rem; letter-spacing: -0.02rem; line-height: 1.25; color: var(--ink); font-weight: 400; }
@media (max-width: 1280px) { .nav-links { gap: 2rem !important; } .nav-links a { font-size: 1rem; } }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { background: var(--ink); height: 1.5px; }
.nav-dropdown ul { background: #fff; border-color: var(--line); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(11, 11, 12, 0.25); }
.nav-dropdown li a { font-size: 15px; color: var(--ink); border-radius: 10px; }
.nav-dropdown li a:hover { background: var(--bg-panel-2); color: var(--ink); }
.nav-dropdown .nav-dropdown-all a { color: var(--ink); font-weight: 600; }
.nav-cta .btn { padding: 0.8rem 1.5rem; font-size: 1.15rem; }
.menu-toggle { color: var(--ink); border: 1px solid var(--ink); border-radius: 50%; width: 44px; height: 44px; display: none; align-items: center; justify-content: center; }
@media (max-width: 900px) { .menu-toggle { display: inline-flex; } }

/* Mobile drawer */
.mobile-drawer { background: #fff !important; }
.mobile-drawer-nav a { color: var(--ink); font-family: var(--font-sans), sans-serif; font-weight: 500; justify-content: flex-start; gap: 16px; }
.mobile-drawer-nav a .m-arrow { margin-left: auto; }
.mobile-drawer-nav a.active { color: var(--accent-soft); }
.mobile-drawer-nav .m-sub a { color: var(--muted); }
.mobile-drawer-close:hover, .mobile-drawer-social a:hover { color: var(--ink); }

/* ---------- Sections as white sheets on the grey canvas ---------- */
main { padding-bottom: 24px; }
.section-pad { padding: 96px 0; }
.sheet { padding: 12px 0; }
.sheet > .wrap {
  background: var(--bg-panel);
  border-radius: var(--radius-sheet);
  padding: clamp(32px, 5vw, 72px);
  max-width: 82.5rem;
}
.divider-top { border-top: 0; }
.wrap { max-width: 82.5rem; }
.sheet > .wrap, .final-cta .wrap { padding-left: 3.75rem; padding-right: 3.75rem; }
@media (max-width: 760px) { .sheet > .wrap, .final-cta .wrap { padding-left: 1.25rem; padding-right: 1.25rem; } }

/* Section heads: label on the left, statement on the right */
.section-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px 48px; align-items: start; margin-bottom: 56px; }
.section-head > div { display: contents; }
.section-head .kicker { grid-column: 1; grid-row: 1 / span 2; }
.section-head h2 { grid-column: 2; max-width: none; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.05rem; }
.section-head .desc { grid-column: 2; max-width: 56ch; color: var(--ink); font-size: 1.25rem; line-height: 1.35; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .kicker, .section-head h2, .section-head .desc { grid-column: 1; grid-row: auto; }
}

/* ---------- Homepage hero + showreel ---------- */
.hero {
  min-height: 0; display: block; padding: 0; overflow: hidden;
  background: #fff; border-radius: 0 0 var(--radius-sheet) var(--radius-sheet);
  margin-bottom: 12px;
}
.hero-center-content {
  min-height: 100svh; max-width: 82.5rem; margin: 0 auto; padding: 7rem 1.5rem 3rem;
  text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-eyebrow {
  font-size: 1.25rem; letter-spacing: -0.025rem; line-height: 1.2; color: var(--ink);
  white-space: nowrap; max-width: none; margin: 0 auto 1.5rem;
}
.hero-center-content h1, .hero-title {
  font-size: clamp(2.2rem, 4.1vw, 3.5rem); line-height: 1.05; letter-spacing: -0.1rem;
  color: var(--ink); font-weight: 500; max-width: 30ch; margin: 0 auto; text-wrap: balance;
}
.hero-center-content .hero-actions { margin-top: 2.5rem; gap: 12px; }
.hero-tags { color: var(--muted); font-size: 1rem; margin-top: 1.75rem; }
.hero-tags li + li::before { color: var(--ink); }
.hero-scroll {
  order: 10; margin-top: 3.5rem; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; text-decoration: none; transition: transform .25s ease;
}
.hero-scroll:hover { transform: translateY(4px); }
.hero-reel {
  position: relative; margin: 0 auto; max-width: 82.5rem;
  border-radius: 28px; overflow: hidden; background: #0B0B0C;
  aspect-ratio: 16 / 8.5;
}
.hero-reel-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-reel-bar {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; padding: 10px 10px 10px 22px; font-size: 17px; font-weight: 500; color: var(--ink);
}
.hero-reel-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-reel-toggle svg { width: 16px; height: 16px; }
.hero-reel-toggle .i-play, .hero-reel-toggle.is-paused .i-pause { display: none; }
.hero-reel-toggle.is-paused .i-play { display: block; }

/* Big statement ticker */
.ticker-band { border: 0; padding: 48px 0 44px; }
.ticker-inner { animation-duration: 40s; }
.ticker-inner span {
  font-family: var(--font-sans), sans-serif; font-size: clamp(1.6rem, 2.6vw, 2.5rem); font-weight: 500;
  text-transform: uppercase; letter-spacing: -0.01em; color: var(--ink);
  border-right: 0; padding: 0 44px;
}

@media (max-width: 768px) {
  .hero-center-content { min-height: 0; padding-top: 7.5rem; }
  .hero-eyebrow { white-space: normal; font-size: 1rem; }
  .hero-center-content h1, .hero-title { letter-spacing: -0.04rem; }
  .hero-reel { margin-top: 44px; border-radius: 20px; aspect-ratio: 4 / 3; }
  .hero-reel-bar { left: 10px; right: 10px; bottom: 10px; font-size: 15px; }
  .hero-center-content .hero-actions { flex-direction: column; width: 100%; align-items: center; }
}

/* ---------- Services list ---------- */
.cap-list { border-top: 0; }
.cap-row { grid-template-columns: 1fr 1.3fr auto; padding: 30px 0; border-bottom: 1px solid var(--line); }
.cap-row:first-child { border-top: 1px solid var(--line); }
.cap-row .cap-index { grid-column: 1; grid-row: 1 / span 2; font-family: var(--font-sans), sans-serif; font-size: 20px; color: var(--ink); font-weight: 500; }
.cap-row h3 { grid-column: 2; font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; }
.cap-row > div:not(.cap-arrow) { grid-column: 2; }
.cap-row .cap-arrow { grid-column: 3; grid-row: 1 / span 2; border: 0; width: 44px; height: 44px; }
.cap-row .cap-arrow svg { stroke: var(--ink); width: 22px; height: 22px; }
.cap-row:hover { background: transparent; padding-left: 0; }
.cap-row:hover .cap-arrow { background: var(--bg-panel-2); transform: translateX(4px); }
.cap-row .cap-desc { color: var(--muted); max-width: 52ch; }
.cap-row .cap-sub { color: var(--muted-dim); }
@media (max-width: 760px) {
  .cap-row { grid-template-columns: 44px 1fr; grid-template-areas: none; }
  .cap-row .cap-index { grid-column: 1; grid-row: 1; font-size: 15px; }
  .cap-row h3, .cap-row > div:not(.cap-arrow) { grid-column: 2; }
  .cap-row .cap-arrow { grid-column: 2; grid-row: auto; justify-self: start; }
}

/* ---------- Selected work ---------- */
.work-list { gap: 96px; }
.work-row { grid-template-columns: 1fr 1.15fr; gap: 64px; }
.work-row.reverse { grid-template-columns: 1.15fr 1fr; }
.work-media { border: 0; border-radius: 26px; aspect-ratio: 4 / 3; background: var(--bg-panel-2); }
.work-media::after { display: none; }
.work-copy .work-cat { display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 500; }
.work-copy .work-cat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.work-copy h3 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.08; font-weight: 500; margin-bottom: 16px; }
.work-copy .work-tech { font-family: var(--font-sans), sans-serif; color: var(--muted-dim); font-size: 14px; margin: 0 0 16px; }
.work-copy .work-desc { color: var(--ink); font-size: 19px; line-height: 1.5; max-width: 40ch; }
.work-metrics { display: flex; flex-wrap: wrap; gap: 24px 56px; margin-top: 32px; }
.work-metrics:empty { display: none; }
.work-metric { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; }
.work-metric .num { font-size: clamp(34px, 3.4vw, 48px); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.work-metric .num-label { font-family: var(--font-sans), sans-serif; font-size: 13px; text-transform: uppercase; color: var(--muted-dim); max-width: 16ch; line-height: 1.3; }
.work-link { border: 0; font-size: 17px; margin-top: 36px; color: var(--ink); }
.work-link:hover { color: var(--ink); gap: 14px; }
.work-foot { justify-content: center; margin-top: 64px; }
.work-foot .btn { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 820px) {
  .work-row, .work-row.reverse { gap: 28px; }
  .work-list { gap: 64px; }
}

/* ---------- Chips ---------- */
.filter-chip { font-size: 15px; font-weight: 500; color: var(--ink); border: 1px solid var(--line-strong); background: transparent; padding: 10px 18px; }
.filter-chip:hover { border-color: var(--ink); color: var(--ink); background: var(--bg-panel-2); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Who we work with / process cards ---------- */
.diff-section { background: transparent; }
.diff-steps { background: transparent; border: 0; gap: 14px; }
.diff-step { background: var(--bg-panel-2); border-radius: var(--radius-card); padding: 30px 26px; }
.diff-step .diff-num { font-family: var(--font-sans), sans-serif; font-size: 15px; color: var(--muted-dim); font-weight: 500; }
.diff-step h3 { font-size: 22px; font-weight: 500; }
.diff-step p { color: var(--muted); font-size: 15.5px; }
.diff-media { border: 0; border-radius: 26px; }
.diff-copy h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; font-weight: 500; }
.diff-copy p { color: var(--muted); font-size: 18px; }

/* ---------- Testimonials: card carousel ---------- */
.testi-section { background: transparent; }
.testi-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  flex: 0 0 clamp(290px, 31%, 480px); scroll-snap-align: start;
  background: #fff; border-radius: var(--radius-card); padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 380px;
}
.testi-card .testi-quote { font-family: var(--font-sans), sans-serif; font-size: 20px; line-height: 1.45; font-weight: 400; min-height: 0; color: var(--ink); }
.testi-author { margin-top: 0; }
.testi-author img { width: 54px; height: 54px; border: 0; box-shadow: none; }
.testi-author .name { font-size: 20px; font-weight: 500; color: var(--ink); }
.testi-author .role { font-size: 17px; color: var(--ink); }
.testi-controls { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.testi-progress { flex: 1; height: 3px; background: rgba(11, 11, 12, 0.12); border-radius: 3px; margin-right: 40px; overflow: hidden; }
.testi-progress span { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: margin-left .25s ease; }
.testi-arrow { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 22px; cursor: pointer; transition: background .2s ease; }
.testi-arrow:hover { background: var(--ink); color: #fff; }
@media (max-width: 760px) { .testi-card { flex-basis: 86%; padding: 26px; min-height: 320px; } .testi-arrow { width: 52px; height: 52px; } }

/* Proof stats + logos */
.proof-stats { background: transparent; border: 0; gap: 14px; margin-top: 64px; }
.proof-stat { background: #fff; border-radius: var(--radius-card); padding: 32px 28px; }
.proof-stat .num { font-size: clamp(36px, 3.6vw, 54px); font-weight: 500; letter-spacing: -0.02em; }
.proof-stat .lbl { font-size: 13px; text-transform: uppercase; color: var(--muted-dim); }
.proof-logos p { font-size: 15px; color: var(--ink); text-transform: uppercase; letter-spacing: 0; font-weight: 500; }
.proof-logo-row img { filter: grayscale(1); opacity: 0.55; height: 30px; }
.proof-logo-row img:hover { filter: none; opacity: 1; }

/* ---------- Blog / insight cards ---------- */
.blog-card { background: var(--bg-panel-2); border: 0; border-radius: var(--radius-card); }
.sheet .blog-card { background: var(--bg-panel-2); }
.blog-card:hover { transform: translateY(-4px); border-color: transparent; }
.blog-media { border-radius: 16px; margin: 10px 10px 0; }
.blog-cat { color: var(--muted-dim); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 14px; }
.blog-card h3 { font-weight: 500; font-size: 20px; }
.blog-read { color: var(--ink); }
.blog-card:hover .blog-read { color: var(--ink); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 12px 0 0; background: transparent; }
.final-cta .final-cta-bg { display: none; }
.final-cta .wrap { background: #fff; border-radius: var(--radius-sheet); padding: clamp(48px, 7vw, 110px) clamp(24px, 5vw, 72px); max-width: calc(1320px - 64px); }
.final-cta h2 { font-weight: 500; letter-spacing: -0.035em; color: var(--ink); }
.final-cta .kicker { justify-content: center; }

/* ---------- Subpages ---------- */
.hero-subpage {
  background: #fff; border-bottom: 0; padding: 150px 0 72px;
  border-radius: 0 0 var(--radius-sheet) var(--radius-sheet);
}
.hero-subpage-bg { display: none; }
.hero-subpage h1 { font-weight: 500; letter-spacing: -0.035em; color: var(--ink); }
.hero-subpage .intro { color: var(--muted); }

.card-panel, .portfolio-card, .subservice-card, .contact-card, .brief-card, .cs-content-block, .cs-sidebar, .cs-meta-bar, .cs-next, .contact-method-box {
  background: #fff !important; border: 0 !important; border-radius: var(--radius-card) !important; box-shadow: none !important;
}
.portfolio-card:hover, .subservice-card:hover { box-shadow: 0 24px 48px -28px rgba(11, 11, 12, 0.35) !important; }
.portfolio-art, .blog-art { border: 0 !important; }
.portfolio-card.feature-card .portfolio-art { border: 0 !important; }
.portfolio-content .portfolio-tech, .cs-meta-label, .cs-next-label, .cs-before-after figcaption, .contact-method-box .lbl, .brief-num { font-family: var(--font-sans), sans-serif !important; color: var(--muted-dim) !important; }
.portfolio-link, .cs-next-arr { color: var(--ink) !important; }
.portfolio-link:hover { color: var(--accent-soft) !important; }
.cs-metric-box { background: var(--bg-panel-2) !important; border: 0 !important; border-radius: 18px !important; }
.cs-metric-num { color: var(--ink) !important; font-weight: 500 !important; }
.tool-tag { background: var(--bg-panel-2) !important; border: 0 !important; color: var(--ink) !important; font-family: var(--font-sans), sans-serif !important; border-radius: 999px !important; font-size: 13px !important; }
.category-block { border-bottom-color: var(--line); }
.category-info h2 { font-weight: 500; font-size: clamp(28px, 3vw, 40px); }
.subservice-head .arr { color: var(--ink); }
.services-overview-stack .category-block { background: #fff; border-radius: var(--radius-sheet); padding: clamp(28px, 4vw, 56px); border-bottom: 0; }
.services-subgrid .subservice-card { background: var(--bg-panel-2) !important; }

/* ---------- Forms: underline fields ---------- */
.form-group label { color: var(--ink); font-weight: 500; font-family: var(--font-sans), sans-serif; }
.form-control {
  background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line-strong) !important;
  border-radius: 0 !important; padding: 12px 0 !important; color: var(--ink) !important; font-size: 16px;
  box-shadow: none !important;
}
.form-control:focus { border-bottom-color: var(--ink) !important; outline: none; }
.form-control::placeholder { color: var(--muted-dim); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 120px; resize: vertical; }
.brief-step { border-bottom-color: var(--line) !important; }
.brief-step label { font-size: 18px; }

/* ---------- Footer: dark contrast band ---------- */
footer {
  --ink: #F5F5F4; --muted: #A1A1AA; --muted-dim: #71717A;
  --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.22);
  --accent-soft: #86EFAC;
  background: #0B0B0C; color: var(--ink); border-top: 0 !important;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; margin-top: 12px;
}
footer .btn-primary, footer a.btn-primary { background: #fff; border-color: #fff; color: #0B0B0C !important; }
footer .btn-primary * { color: #0B0B0C !important; }
footer .fcol a { color: var(--ink); }

@media (max-width: 600px) {
  .hero-tags { gap: 8px; }
  .hero-tags li { padding: 6px 12px; border-radius: 999px; background: var(--bg-panel-2); font-size: 0.9rem; }
  .hero-tags li + li::before { display: none; }
}

/* ==========================================================================
   Heavier headlines, brand accents, motion & interaction
   ========================================================================== */
h1, h2, h3, .hero-title, .hero-center-content h1, .hero-subpage h1, .section-head h2,
.work-copy h3, .diff-copy h2, .final-cta h2, .category-info h2, .cap-row h3 { font-weight: 600; }
.hero-center-content h1, .hero-title { letter-spacing: -0.12rem; }
.hero-title { word-spacing: 0.02em; }

/* Brand-green details */
.kicker::before, .work-copy .work-cat::before { background: var(--brand); }
.hero-tags li + li::before { color: var(--brand); }
.hero-reel-toggle, .testi-arrow:hover, .filter-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.testi-progress span { background: var(--brand); }
.nav-links a.active::after { background: var(--brand); }
.work-link, .blog-read { transition: color .2s ease, gap .25s ease; }
.work-link:hover, .blog-card:hover .blog-read, .portfolio-link:hover { color: var(--brand-hover) !important; }

/* Scroll-down arrow: lower, with a soft bounce */
.hero-scroll {
  margin-top: 5.5rem; width: 3rem; height: 3rem; background: var(--brand);
  box-shadow: 0 10px 24px -10px rgba(22, 163, 74, 0.6);
  animation: heroBounce 2.2s cubic-bezier(.45, 0, .55, 1) infinite;
}
.hero-scroll:hover { animation-play-state: paused; background: var(--brand-hover); transform: none; }
@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(10px); }
  40% { transform: translateY(0); }
  55% { transform: translateY(5px); }
  70% { transform: translateY(0); }
}

/* Old per-page reveal classes are superseded by theme-motion.js */
.reveal, .reveal-img, .stagger-item, .reveal:not(.in-view), .reveal-img:not(.in-view) { opacity: 1 !important; transform: none !important; }

/* Scroll entrances (only when JS enabled motion) */
.motion [data-m] {
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), filter .9s ease;
  transition-delay: var(--m-delay, 0ms);
  will-change: opacity, transform;
}
.motion [data-m="up"]:not(.m-in) { opacity: 0 !important; transform: translateY(36px) !important; }
.motion [data-m="zoom"]:not(.m-in) { opacity: 0 !important; transform: scale(.94) !important; filter: blur(6px); }
.motion [data-m="sheet"]:not(.m-in) { opacity: 0; transform: translateY(60px); }
.motion [data-m].m-in { opacity: 1; transform: none; filter: none; }

/* Showreel scales up as it enters (scale set by JS) */
.hero-reel[data-m].m-in { transform: scale(var(--reel-scale, 1)) !important; transition: transform .15s linear, opacity .9s ease; }

/* Header hides on scroll down, returns on scroll up */
header#siteHeader { transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, background .3s ease; }
header#siteHeader.nav-hidden { transform: translateY(-100%); }

/* Hover interactions */
.btn { transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease; }
.btn:active { transform: translateY(0) scale(.97); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translate(2px, -2px); }
.work-media img, .blog-media img, .diff-media img, .portfolio-art { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.work-media:hover img, .blog-card:hover .blog-media img, .diff-media:hover img { transform: scale(1.06); }
.diff-step, .proof-stat, .testi-card, .subservice-card, .portfolio-card, .blog-card, .cs-content-block {
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease, background .3s ease;
}
.diff-step:hover, .proof-stat:hover, .testi-card:hover {
  transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(11, 11, 12, 0.35);
}
.diff-step:hover { background: #fff; outline: 1px solid var(--line); }
.diff-step:hover .diff-num { color: var(--brand); }
.cap-row { position: relative; }
.cap-row::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.cap-row:hover::after { transform: scaleX(1); }
.cap-row h3 { transition: transform .45s cubic-bezier(.16, 1, .3, 1), color .3s ease; }
.cap-row:hover h3 { transform: translateX(10px); color: var(--brand-hover); }
.cap-row:hover .cap-arrow { background: var(--brand); }
.cap-row:hover .cap-arrow svg { stroke: #fff; }
.ticker-band:hover .ticker-inner { animation-play-state: paused; }
.filter-chip { transition: all .25s cubic-bezier(.16, 1, .3, 1); }
.filter-chip:hover { transform: translateY(-2px); }
.nav-dropdown li a { transition: background .2s ease, padding-left .25s ease; }
.nav-dropdown li a:hover { padding-left: 18px; }
.proof-logo-row img { transition: opacity .3s ease, filter .3s ease, transform .3s ease; }
.proof-logo-row img:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
  .ticker-inner { animation: none; }
}

/* Hero: content-height (not full screen) so the showreel sits right under the arrow */
.hero-center-content { min-height: 0; padding: 11rem 1.5rem 3rem; }
.hero-scroll { margin-top: 3.5rem; animation: heroBounce 2.2s cubic-bezier(.45, 0, .55, 1) infinite !important; }
@media (max-width: 768px) { .hero-center-content { padding: 7.5rem 1.25rem 2.5rem; } .hero-scroll { margin-top: 2.5rem; } }

/* Scroll arrow: solid black, no shadow */
.hero-scroll, .hero-scroll:hover { background: var(--ink) !important; box-shadow: none !important; color: #fff; }

/* Tighter buttons (~20% shorter) */
.btn, a.btn, button.btn { padding-top: 0.65rem !important; padding-bottom: 0.65rem !important; line-height: 1.25 !important; }
.nav-cta .btn, .nav-links .mega-feature-btn { padding-top: 0.6rem !important; padding-bottom: 0.6rem !important; }

/* ---------- What we build: numbered list with animated hover row ---------- */
.cap-list { border-top: 0 !important; margin-top: 8px; }
.cap-list .cap-row {
  position: relative; isolation: isolate;
  display: grid !important; grid-template-columns: 1fr 1fr auto !important; grid-template-areas: none !important;
  align-items: center; gap: 0 24px; padding: 30px 0 !important; margin: 0;
  border: 0 !important; border-bottom: 1px solid var(--line) !important; color: var(--ink);
  transition: border-color .4s ease;
}
.cap-list .cap-row:first-child { border-top: 0 !important; }
.cap-list .cap-row::after { display: none !important; }
.cap-list .cap-row::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 4px;
  background: var(--bg); opacity: 0; transform: scaleY(.6);
  transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1);
}
.cap-list .cap-row:hover::before { opacity: 1; transform: scaleY(1); }
.cap-list .cap-row:hover { border-bottom-color: transparent !important; background: transparent !important; padding-left: 0 !important; }
.cap-list .cap-row:has(+ .cap-row:hover) { border-bottom-color: transparent !important; }
.cap-list .cap-index {
  grid-column: 1 !important; grid-row: 1 !important;
  font-size: 1.5rem !important; font-weight: 400 !important; color: var(--ink) !important;
}
.cap-list .cap-row h3 {
  grid-column: 2 !important; grid-row: 1 !important; margin: 0;
  font-size: clamp(1.6rem, 2.3vw, 2.25rem) !important; font-weight: 400 !important; letter-spacing: -0.04rem; color: var(--ink) !important;
}
.cap-list .cap-arrow {
  grid-column: 3 !important; grid-row: 1 !important; justify-self: end;
  width: 32px !important; height: 24px !important; border: 0 !important; border-radius: 0 !important; background: none !important;
  color: var(--ink); display: block;
}
.cap-list .cap-arrow svg { width: 32px !important; height: 24px !important; stroke: currentColor !important; }
.cap-list .cap-index, .cap-list .cap-row h3, .cap-list .cap-arrow {
  transition: transform .55s cubic-bezier(.16, 1, .3, 1) !important;
}
.cap-list .cap-row:hover .cap-index, .cap-list .cap-row:hover h3 { transform: translateX(28px) !important; color: var(--ink) !important; }
.cap-list .cap-row:hover .cap-arrow { transform: translateX(-28px) !important; background: none !important; }
@media (max-width: 760px) {
  .cap-list .cap-row { grid-template-columns: 48px 1fr auto !important; padding: 22px 0 !important; }
  .cap-list .cap-index { font-size: 1rem !important; }
  .cap-list .cap-row:hover .cap-index, .cap-list .cap-row:hover h3 { transform: translateX(12px) !important; }
  .cap-list .cap-row:hover .cap-arrow { transform: translateX(-12px) !important; }
}

/* No shadows on cards, panels or boxes anywhere (buttons keep their hover glow) */
main *:not(.btn):not(.btn *), footer *:not(.btn), .mega-panel, .nav-dropdown ul,
main *:not(.btn):hover, footer *:not(.btn):hover { box-shadow: none !important; }

/* ---------- Testimonials: edge-to-edge carousel ---------- */
/* Full-bleed track: --bleed (px, set by JS) = distance from screen edge to the content column */
.testi-track {
  margin-left: calc(-1 * var(--bleed, 0px)); margin-right: calc(-1 * var(--bleed, 0px));
  padding-left: var(--bleed, 0px); padding-right: 0;
  scroll-padding-left: var(--bleed, 0px); scroll-snap-type: x proximity;
  gap: 16px; cursor: grab;
}
.testi-track::after { content: ''; flex: 0 0 max(calc(var(--bleed, 0px) - 16px), 1px); }
.testi-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.testi-card { flex: 0 0 min(30rem, 84vw) !important; min-height: 25rem; padding: 2.25rem !important; border-radius: 1.25rem !important; }
.testi-card .testi-quote { font-size: 1.35rem !important; line-height: 1.25 !important; letter-spacing: -0.03rem; }
.testi-author img { width: 56px !important; height: 56px !important; }
.testi-author .name { font-size: 1.6rem !important; letter-spacing: -0.04rem; }
.testi-author .role { font-size: 1.25rem !important; color: var(--ink) !important; }
.testi-controls { gap: 12px; margin-top: 3rem; }
.testi-progress { flex: 1; height: 3px !important; background: #CBD1D6 !important; border-radius: 3px; margin-right: 5rem !important; overflow: hidden; position: relative; }
.testi-progress span {
  position: absolute; left: 0; top: 0; height: 100%; margin: 0 !important; background: var(--ink) !important; border-radius: 3px;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), width .3s ease !important;
}
.testi-arrow {
  width: 4.25rem !important; height: 4.25rem !important; border-radius: 50%; border: 0;
  background: #fff !important; color: var(--ink) !important; display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
}
.testi-arrow svg { width: 26px; height: 26px; }
.testi-arrow:hover:not([disabled]) { background: var(--ink) !important; color: #fff !important; transform: scale(1.06); }
.testi-arrow[disabled] { opacity: .4; cursor: default; }
@media (max-width: 760px) {
  .testi-progress { margin-right: 1rem !important; }
  .testi-arrow { width: 3.25rem !important; height: 3.25rem !important; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { position: absolute; top: 6rem; left: 0; right: 0; z-index: 5; pointer-events: none; }
.crumbs ol { list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.95rem; color: var(--muted-dim); }
.crumbs li { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.crumbs li + li::before { content: '/'; color: #C3C8CD; }
.crumbs a { color: var(--muted); transition: color .2s ease; }
.crumbs a:hover { color: var(--brand-hover); }
.crumbs [aria-current] { color: var(--ink); }
@media (max-width: 760px) { .crumbs { top: 5rem; } .crumbs ol { font-size: 0.85rem; } }

/* ---------- SEO scope (SEO service page) ---------- */
.seo-scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seo-scope-card { background: var(--bg-panel-2); border-radius: var(--radius-card); padding: 30px 28px; transition: background .3s ease, transform .45s cubic-bezier(.16, 1, .3, 1); }
.seo-scope-card:hover { background: #E5E9EB; transform: translateY(-4px); }
.seo-scope-num { font-size: 0.95rem; color: var(--muted-dim); }
.seo-scope-card h3 { font-size: 1.5rem; margin: 10px 0 16px; }
.seo-scope-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.seo-scope-card li { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--ink); }
.seo-scope-card li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
@media (max-width: 960px) { .seo-scope-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .seo-scope-grid { grid-template-columns: 1fr; } }

/* ---------- Related work cards (service pages, case studies) ---------- */
.related-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-work-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.related-work-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; background: var(--bg-panel-2); }
.related-work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.related-work-card:hover .related-work-img img { transform: scale(1.05); }
.related-work-cat { margin-top: 6px; font-size: 0.95rem; color: var(--muted-dim); }
.related-work-title { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.03rem; line-height: 1.2; }
.related-work-link { font-size: 1rem; transition: color .2s ease, transform .3s ease; }
.related-work-card:hover .related-work-link { color: var(--brand-hover); transform: translateX(4px); }
@media (max-width: 900px) { .related-work-grid { grid-template-columns: 1fr; } }

/* Services page: per-category benefits and relevant work */
.category-benefits { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.category-benefits li { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--ink); }
.category-benefits li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.category-work { font-size: 1rem !important; color: var(--muted-dim) !important; margin-bottom: 8px !important; }
.category-work a { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: color .2s ease, border-color .2s ease; }
.category-work a:hover { color: var(--brand-hover); border-color: var(--brand-hover); }
/* Breadcrumbs share the hero text column */
.crumbs ol.wrap { max-width: 960px; }

/* ==========================================================================
   Mobile & tablet refinements (all pages)
   ========================================================================== */
.newsletter-modal-overlay { width: auto !important; }
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 36px 24px !important; }
  .footer-brand { grid-column: 1 / -1; }
  .fcol { min-width: 0; }
  .fcol a { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start !important; }
  .footer-legal { flex-wrap: wrap; gap: 12px 18px !important; }
}
@media (max-width: 820px) {
  .work-row, .work-row.reverse { grid-template-columns: 1fr !important; gap: 24px !important; }
  .work-row .work-media, .work-row.reverse .work-media { order: 0 !important; }
  .work-row .work-copy, .work-row.reverse .work-copy { order: 1 !important; }
  .work-copy h3 { font-size: clamp(1.8rem, 7vw, 2.4rem) !important; }
  .work-copy .work-desc { font-size: 1.05rem !important; max-width: none; }
  .work-metrics { gap: 20px 36px; margin-top: 22px; }
  .work-link { margin-top: 22px; }
}
@media (max-width: 600px) {
  .details-card, .cs-content-block, .cs-sidebar, .contact-card, .brief-card, .booking-card { padding: 22px !important; }
  .portfolio-content { padding: 22px !important; }
  .cs-meta-bar { padding: 20px 22px !important; }
  .sheet > .wrap { padding-top: 32px !important; padding-bottom: 36px !important; }
  .section-pad { padding-top: 56px; padding-bottom: 56px; }
  .hero-subpage { padding: 7.5rem 0 3rem !important; }
  .hero-subpage h1 { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
  .final-cta h2 { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
}
/* Breadcrumbs stay on one line; a long last item is truncated */
.crumbs ol { flex-wrap: nowrap; overflow: hidden; }
.crumbs li { flex: none; }
.crumbs li:last-child { flex: 1 1 auto; min-width: 0; }
.crumbs li:last-child span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  /* Book a consultation: stack the calendar header bar */
  .booking-card > div > div:first-child { flex-direction: column; align-items: flex-start !important; gap: 14px; padding: 18px 20px !important; }
  .booking-card iframe { height: 680px !important; }
  .booking-card > div > div:last-child { min-height: 680px !important; }
}

/* Keep arrow/check symbols as text glyphs (iOS otherwise swaps some for emoji) */
body { font-variant-emoji: text; }

/* ---------- Insights editorial cards (Insights, Guides, Technical Briefs, Perspectives) ---------- */
  .ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .ins-card[hidden] { display: none; }
  .ins-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .25s ease, transform .25s ease; }
  .ins-card-media { display: block; aspect-ratio: 16 / 10; background: #F2F4F6; overflow: hidden; border-bottom: 1px solid var(--line); }
  .ins-card-media img, .ins-impl-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
  .ins-card:hover .ins-card-media img, .ins-impl-card:hover .ins-impl-media img { transform: scale(1.04); }
  .ins-card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; }
  .ins-card-title { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink); }
  .ins-card-desc { font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ins-card-meta { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; font-size: 13.5px; color: var(--muted-dim); }
  .ins-card-link { font-weight: 600; color: var(--ink); }
  .ins-more { display: flex; justify-content: center; margin-top: 48px; }

@media (max-width: 960px) { .ins-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ins-grid { grid-template-columns: 1fr; } }
.ins-card-cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-soft); }
.ins-card:hover { border-color: var(--accent); transform: translateY(-3px); }

/* ---------- Subpage hero with an image (Work, Services, Insights) ---------- */
.sub-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.sub-hero-copy { min-width: 0; }
.sub-hero-media { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-panel-2); box-shadow: 0 40px 80px -44px rgba(11, 11, 12, .45); }
.sub-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 960px) {
  .sub-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .sub-hero-media { aspect-ratio: 16 / 10; }
}
.hero-subpage.has-media .wrap { max-width: var(--wrap); }
body:has(.hero-subpage.has-media) .crumbs .wrap { max-width: var(--wrap); }
.hero-subpage.has-media .sub-hero-copy h1 { max-width: 16ch; }
