/* Invrtd Studio overrides on top of the theme's prebuilt main.css. */

/* Article / legal content: the theme styles h3/h4 but not h2. */
.details-body h2 {
  font-size: var(--text-heading-5);
  line-height: var(--text-heading-5--line-height);
  margin: 56px 0 16px;
}
.details-body h2:first-child { margin-top: 0; }
.details-body a { color: var(--color-primary-500); text-decoration: underline; }
.details-body ul li p { padding-bottom: 0; }
.legal-body h3 { font-size: var(--text-heading-6); line-height: var(--text-heading-6--line-height); }
.legal-body h3:not(:first-child) { margin-top: 32px; }

/* Anchors (#team, #values) should clear the floating header. */
[id] { scroll-margin-top: 120px; }

address { font-style: normal; }
ul.list-disc { padding-left: 1.25rem; }

/* Careers: résumé file input */
.resume-input::file-selector-button {
  margin-right: 12px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: var(--color-secondary); color: #fff; cursor: pointer; font: inherit;
}
.job-body p { padding-bottom: 0; }

/* ---------- Portfolio ---------- */
.pf-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--color-stroke-3, #e5e5e5); background: #fff;
  color: var(--color-secondary); font-size: var(--text-tagline-1); line-height: 1.4;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pf-filter:hover { border-color: var(--color-secondary); }
.pf-filter.is-active { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.pf-count {
  min-width: 24px; padding: 1px 7px; border-radius: 999px; text-align: center;
  font-size: 12px; background: var(--color-background-3, #f2f3f7); color: var(--color-secondary);
}
.pf-filter.is-active .pf-count { background: rgba(255,255,255,.18); color: #fff; }
.pf-filter:focus-visible, .pf-card:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: 3px; }

.pf-card { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; border-radius: 20px; }
.pf-card[hidden] { display: none; }
.pf-thumb {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 20px;
  background: var(--color-background-3, #f2f3f7);
}
.pf-thumb img { transition: transform .5s ease; }
.pf-thumb::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: linear-gradient(to top, rgba(26,26,28,.55), rgba(26,26,28,0) 55%);
}
.pf-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--color-secondary);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.pf-card:hover .pf-thumb::after, .pf-card:focus-visible .pf-thumb::after { opacity: 1; }
.pf-card:hover .pf-zoom, .pf-card:focus-visible .pf-zoom { opacity: 1; transform: none; }

.pf-in { animation: pf-in .45s ease both; }
@keyframes pf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Lightbox */
.pf-lock, .pf-lock body { overflow: hidden; }
.pf-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.pf-lightbox[hidden] { display: none; }
.pf-lightbox.is-open { opacity: 1; }
.pf-lb-backdrop { position: absolute; inset: 0; background: rgba(15,15,17,.82); backdrop-filter: blur(6px); }
.pf-lb-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0;
  width: 100%; max-width: 1080px; max-height: calc(100vh - 32px); overflow: hidden;
  background: #fff; border-radius: 24px; transform: translateY(12px); transition: transform .25s;
}
.pf-lightbox.is-open .pf-lb-panel { transform: none; }
.pf-lb-media { margin: 0; background: var(--color-background-3, #f2f3f7); display: flex; align-items: center; justify-content: center; min-height: 0; }
.pf-lb-media img { width: 100%; height: 100%; max-height: calc(100vh - 32px); object-fit: contain; }
.pf-lb-info { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.pf-lb-info [hidden] { display: none; }
.pf-lb-info .btn { margin-top: 12px; }
.pf-lb-btn {
  position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--color-secondary); box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.pf-lb-btn:hover { background: var(--color-secondary); color: #fff; }
.pf-lb-close { top: 16px; right: 16px; }
.pf-lb-prev, .pf-lb-next { top: 50%; transform: translateY(-50%); }
.pf-lb-prev { left: 16px; }
.pf-lb-next { right: calc(320px + 16px); }

@media (max-width: 860px) {
  .pf-lb-panel { grid-template-columns: 1fr; overflow-y: auto; }
  .pf-lb-media img { max-height: 60vh; }
  .pf-lb-info { padding: 20px 20px 24px; }
  .pf-lb-prev, .pf-lb-next { top: 30vh; }
  .pf-lb-next { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-in { animation: none; }
  .pf-thumb img, .pf-lightbox, .pf-lb-panel { transition: none; }
}
.pf-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pf-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pf-grid { align-items: start; }

/* ---------- Services page ---------- */
.svc-hero { background: var(--color-background-3); }
.svc-hero-glow { position: absolute; width: 900px; max-width: 120vw; top: -260px; right: -220px; opacity: .55; transform: rotate(200deg); pointer-events: none; user-select: none; }
.svc-hero-title {
  font-size: clamp(2.5rem, 6.4vw, 5.25rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500;
  color: var(--color-secondary);
}
.svc-rotator { display: inline-grid; justify-items: center; vertical-align: bottom; color: var(--color-primary-500); text-align: center; }
.svc-rotator-word {
  grid-area: 1 / 1; opacity: 0; transform: translateY(40%); filter: blur(6px);
  transition: opacity .5s ease, transform .5s ease, filter .5s ease; white-space: nowrap;
}
.svc-rotator-word.is-active { opacity: 1; transform: none; filter: none; }
.svc-rotator-word.is-leaving { opacity: 0; transform: translateY(-40%); }

.svc-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 64px auto 0; max-width: 960px;
  background: #fff; border: 1px solid var(--color-stroke-2); border-radius: 24px; overflow: hidden;
}
.svc-stats li { padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.svc-stats li + li { border-left: 1px solid var(--color-stroke-2); }
.svc-stats strong { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; line-height: 1.2; color: var(--color-secondary); letter-spacing: -0.02em; }
.svc-stats span { font-size: var(--text-tagline-2); color: rgba(26,26,28,.6); }

/* Crossing ribbons */
.svc-ribbons { position: relative; height: 190px; overflow: hidden; margin-top: -10px; }
.svc-ribbon { position: absolute; left: -5%; width: 110%; padding: 18px 0; overflow: hidden; }
.svc-ribbon-dark { top: 40px; background: var(--color-secondary); color: #fff; transform: rotate(-3deg); z-index: 2; }
.svc-ribbon-yellow { top: 70px; background: var(--color-ns-yellow); color: var(--color-secondary); transform: rotate(2.5deg); }
.svc-ribbon-track { display: flex; width: max-content; animation: svc-marquee 38s linear infinite; }
.svc-ribbon-yellow .svc-ribbon-track { animation-direction: reverse; animation-duration: 44s; }
.svc-ribbon-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.svc-ribbon-group span { font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 500; white-space: nowrap; letter-spacing: -0.01em; }
.svc-ribbon-dark .svc-ribbon-star { color: var(--color-ns-green); }
.svc-ribbon-yellow .svc-ribbon-star { color: var(--color-primary-500); }
@keyframes svc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Bento */
.svc-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.svc-tile {
  position: relative; overflow: hidden; border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 360px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.svc-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(26,26,28,.35); }
.svc-wide { grid-column: span 7; }
.svc-mid { grid-column: span 5; }
.svc-third { grid-column: span 4; }
.svc-full { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; }
.svc-full .svc-tile-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; flex: 1; padding-right: 64px; }
.svc-full .svc-tile-head { flex-direction: column; align-items: flex-start; align-self: stretch; }

.svc-dark { background: var(--color-secondary); color: #fff; }
.svc-yellow { background: var(--color-ns-yellow); color: var(--color-secondary); }
.svc-cyan { background: var(--color-ns-cyan); color: var(--color-secondary); }
.svc-purple { background: var(--color-primary-500); color: #fff; }
.svc-green { background: var(--color-ns-green); color: var(--color-secondary); }
.svc-light { background: var(--color-background-3); color: var(--color-secondary); border: 1px solid var(--color-stroke-2); }

.svc-tile-glow { position: absolute; width: 620px; top: -320px; right: -260px; transform: rotate(60deg); opacity: .9; pointer-events: none; }
.svc-tile-head, .svc-tile-body, .svc-tile-link { position: relative; z-index: 1; }
.svc-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.svc-tile-icon { width: 56px; height: 56px; border-radius: 18px; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.svc-tile-num { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; opacity: .25; }
.svc-tile-title { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; color: inherit; }
.svc-tile-desc { color: inherit; opacity: .72; max-width: 560px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.svc-chips li { font-size: 13px; line-height: 1; padding: 9px 13px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; white-space: nowrap; }
.svc-full .svc-chips { margin-top: 0; }
.svc-tile-link {
  position: absolute; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-secondary); color: #fff; transition: transform .3s, background-color .3s;
}
.svc-dark .svc-tile-link, .svc-purple .svc-tile-link { background: #fff; color: var(--color-secondary); }
.svc-tile:hover .svc-tile-link { transform: rotate(45deg); }
.svc-tile-body { padding-right: 56px; }

/* Recent work strip */
.svc-work-glow { position: absolute; width: 1600px; top: -1280px; left: 50%; transform: translateX(-50%); opacity: .9; pointer-events: none; }
.svc-work-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.svc-work-track { display: flex; width: max-content; animation: svc-marquee 60s linear infinite; }
.svc-work-strip:hover .svc-work-track, .svc-work-strip:focus-within .svc-work-track { animation-play-state: paused; }
.svc-work-group { display: flex; gap: 20px; padding-right: 20px; }
.svc-work-card { position: relative; display: block; width: 260px; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; flex-shrink: 0; background: var(--color-background-9); }
.svc-work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-work-card:hover img { transform: scale(1.06); }
.svc-work-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff;
  background: linear-gradient(to top, rgba(10,10,12,.85), rgba(10,10,12,0)); display: flex; flex-direction: column; gap: 2px;
}
.svc-work-caption strong { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-work-caption span { font-size: 12px; opacity: .7; }

/* Process */
.svc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; counter-reset: none; }
.svc-steps::before { content: ""; position: absolute; top: 32px; left: 16.66%; right: 16.66%; border-top: 2px dashed var(--color-stroke-3); }
.svc-step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 12px; }
.svc-step p { max-width: 320px; }
.svc-step-num {
  width: 64px; height: 64px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 500; color: var(--color-secondary); margin-bottom: 14px; box-shadow: 0 0 0 8px #fff;
}
.svc-dot-yellow { background: var(--color-ns-yellow); }
.svc-dot-green { background: var(--color-ns-green); }
.svc-dot-cyan { background: var(--color-ns-cyan); }

@media (max-width: 1023px) {
  .svc-wide, .svc-mid { grid-column: span 12; }
  .svc-third { grid-column: span 6; }
  .svc-third:nth-child(5) { grid-column: span 12; }
  .svc-full { flex-direction: column; align-items: stretch; }
  .svc-full .svc-tile-body { grid-template-columns: 1fr; gap: 20px; padding-right: 56px; }
  .svc-full .svc-tile-head { flex-direction: row; align-items: center; }
}
@media (max-width: 767px) {
  .svc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .svc-stats li:nth-child(3) { border-left: 0; }
  .svc-stats li:nth-child(n+3) { border-top: 1px solid var(--color-stroke-2); }
  .svc-ribbons { height: 150px; }
  .svc-ribbon { padding: 12px 0; }
  .svc-ribbon-dark { top: 30px; } .svc-ribbon-yellow { top: 56px; }
  .svc-bento { gap: 14px; }
  .svc-third, .svc-third:nth-child(5) { grid-column: span 12; }
  .svc-tile { padding: 24px; min-height: 0; gap: 28px; border-radius: 22px; }
  .svc-tile-body, .svc-full .svc-tile-body { padding-right: 0; padding-bottom: 56px; }
  .svc-tile-link { right: 20px; bottom: 20px; }
  .svc-work-card { width: 200px; }
  .svc-steps { grid-template-columns: 1fr; gap: 36px; }
  .svc-steps::before { top: 32px; bottom: 32px; left: 50%; right: auto; border-top: 0; border-left: 2px dashed var(--color-stroke-3); }
  .svc-step { background: #fff; padding: 0 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-ribbon-track, .svc-work-track { animation: none; }
  .svc-rotator-word { transition: none; }
  .svc-tile, .svc-tile-link, .svc-work-card img { transition: none; }
}

/* ---------- About page ---------- */
.ab-hero { background: var(--color-background-3); }
.ab-hero-glow { position: absolute; width: 900px; max-width: 130vw; bottom: -420px; left: -300px; opacity: .5; transform: rotate(30deg); pointer-events: none; user-select: none; }
.ab-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ab-hero-title {
  font-size: clamp(2.75rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; color: var(--color-secondary);
}
.ab-flip {
  display: inline-block; color: var(--color-primary-500); transform: rotate(180deg); transform-origin: 50% 55%;
  transition: transform .9s cubic-bezier(.6,-0.3,.3,1.4); cursor: pointer; outline: none;
}
.ab-flip.is-upright { transform: rotate(0deg); }
.ab-flip.is-upright:hover, .ab-flip.is-upright:focus-visible { transform: rotate(180deg); }

.ab-collage { position: relative; height: 520px; }
.ab-collage-card {
  position: absolute; width: 56%; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden;
  border: 6px solid #fff; box-shadow: 0 30px 60px -30px rgba(26,26,28,.45); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.ab-collage-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ab-collage-1 { left: 0; top: 40px; transform: rotate(-8deg); z-index: 1; }
.ab-collage-2 { left: 24%; top: 0; transform: rotate(3deg); z-index: 2; }
.ab-collage-3 { right: 0; top: 70px; transform: rotate(10deg); z-index: 1; }
.ab-collage:hover .ab-collage-1 { transform: rotate(-12deg) translateX(-14px); }
.ab-collage:hover .ab-collage-3 { transform: rotate(14deg) translateX(14px); }
.ab-collage:hover .ab-collage-2 { transform: rotate(0deg) translateY(-8px); }
.ab-sticker {
  position: absolute; z-index: 3; padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 15px;
  box-shadow: 0 10px 24px -10px rgba(26,26,28,.4); white-space: nowrap;
}
.ab-sticker-1 { left: 4%; bottom: 40px; background: var(--color-ns-yellow); color: var(--color-secondary); transform: rotate(-6deg); }
.ab-sticker-2 { right: 2%; top: 14px; background: var(--color-secondary); color: #fff; transform: rotate(5deg); }

/* Manifesto */
.ab-manifesto {
  font-size: clamp(1.75rem, 4.2vw, 3.6rem); line-height: 1.18; letter-spacing: -0.03em; font-weight: 500; max-width: 1150px;
}
.ab-word { color: rgba(26,26,28,.16); transition: color .35s ease; }
.ab-word.is-lit { color: var(--color-secondary); }

/* Timeline */
.ab-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; padding-top: 28px; }
.ab-timeline::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--color-ns-yellow), var(--color-ns-green), var(--color-ns-cyan), var(--color-primary-500)); border-radius: 2px; }
.ab-milestone {
  position: relative; background: var(--color-background-3); border-radius: 24px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px; transition: transform .4s cubic-bezier(.2,.8,.2,1), background-color .3s;
}
.ab-milestone:hover { transform: translateY(-6px); background: var(--color-background-4); }
.ab-milestone-dot { position: absolute; top: -28px; left: 24px; width: 16px; height: 16px; border-radius: 999px; background: #fff; border: 3px solid var(--color-secondary); }
.ab-milestone-label { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--color-primary-500); }
.ab-milestone-title { font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--color-secondary); }

/* Team */
.ab-team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.ab-member { position: relative; }
.ab-member:nth-child(even) { margin-top: 56px; }
.ab-member-photo { aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--color-background-9); }
.ab-member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); transition: transform .6s ease, filter .6s ease; }
.ab-member:hover .ab-member-photo img { transform: scale(1.06); filter: grayscale(0); }
.ab-member-tag {
  position: relative; margin: -34px 12px 0; padding: 12px 16px; border-radius: 16px; color: var(--color-secondary);
  transform: rotate(-2deg); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.ab-member:nth-child(even) .ab-member-tag { transform: rotate(2deg); }
.ab-member:hover .ab-member-tag { transform: rotate(0) translateY(-4px); }
.ab-member-tag h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.3; color: inherit; }
.ab-member-tag p { font-size: 13px; opacity: .7; color: inherit; }
.ab-tag-yellow { background: var(--color-ns-yellow); }
.ab-tag-green { background: var(--color-ns-green); }
.ab-tag-cyan { background: var(--color-ns-cyan); }
.ab-tag-red { background: var(--color-ns-red); }
.ab-tag-purple { background: var(--color-primary-500); color: #fff; }

/* Values */
.ab-values { border-top: 1px solid var(--color-stroke-2); }
.ab-value {
  position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 32px 24px; border-bottom: 1px solid var(--color-stroke-2); overflow: hidden; isolation: isolate;
}
.ab-value::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s cubic-bezier(.2,.8,.2,1); border-radius: 20px;
}
.ab-value:hover::before { transform: scaleY(1); }
.ab-row-yellow::before { background: var(--color-ns-yellow); }
.ab-row-green::before { background: var(--color-ns-green); }
.ab-row-cyan::before { background: var(--color-ns-cyan); }
.ab-row-red::before { background: var(--color-ns-red); }
.ab-value-num { font-size: 1rem; font-weight: 500; color: rgba(26,26,28,.4); }
.ab-value-title { font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: var(--color-secondary); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.ab-value:hover .ab-value-title { transform: translateX(12px); }
.ab-value-desc { color: rgba(26,26,28,.7); max-width: 440px; justify-self: end; }

.ab-ribbons { margin-top: 0; }

@media (max-width: 1023px) {
  .ab-hero-grid { grid-template-columns: 1fr; }
  .ab-collage { height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
  .ab-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-timeline::before { display: none; }
  .ab-milestone-dot { display: none; }
  .ab-timeline { padding-top: 0; }
  .ab-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-member:nth-child(even) { margin-top: 0; }
  .ab-member:nth-child(3n+2) { margin-top: 40px; }
}
@media (max-width: 767px) {
  .ab-collage { height: 360px; }
  .ab-collage-card { border-width: 4px; border-radius: 20px; width: 50%; }
  .ab-collage-1 { left: 4%; } .ab-collage-2 { left: 25%; } .ab-collage-3 { right: 4%; }
  .ab-sticker { font-size: 13px; padding: 8px 14px; }
  .ab-timeline { grid-template-columns: 1fr; }
  .ab-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ab-member:nth-child(3n+2) { margin-top: 0; }
  .ab-member:nth-child(even) { margin-top: 32px; }
  .ab-member-tag { margin: -28px 8px 0; padding: 10px 12px; }
  .ab-member-tag h3 { font-size: 1rem; }
  .ab-value { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; padding: 24px 12px; }
  .ab-value-desc { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-flip, .ab-collage-card, .ab-milestone, .ab-member-photo img, .ab-member-tag, .ab-value::before, .ab-value-title, .ab-word { transition: none; }
}

/* ---------- Blog ---------- */
.blog-hero-title { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; color: var(--color-secondary); max-width: 820px; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--text-tagline-2); color: rgba(26,26,28,.6); }
.blog-dot { width: 4px; height: 4px; border-radius: 999px; background: currentColor; opacity: .6; }
.blog-read { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--color-secondary); }
.blog-read svg { transition: transform .3s ease; }
.group:hover .blog-read svg { transform: translateX(4px); }

/* Featured */
.blog-featured {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch;
  background: var(--color-secondary); color: #fff; border-radius: 32px; overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(26,26,28,.5); }
.blog-featured-media { position: relative; min-height: 380px; overflow: hidden; background: var(--color-background-9); margin: 0; }
.blog-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.blog-featured:hover .blog-featured-media img { transform: scale(1.04); }
.blog-featured-flag { position: absolute; top: 20px; left: 20px; padding: 8px 14px; border-radius: 999px; background: var(--color-ns-yellow); color: var(--color-secondary); font-size: 13px; font-weight: 500; }
.blog-featured-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.blog-featured .blog-meta { color: rgba(255,255,255,.65); }
.blog-featured-title { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; color: #fff; }
.blog-featured-excerpt { color: rgba(255,255,255,.65); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.blog-featured .blog-read { color: var(--color-ns-green); margin-top: 6px; }

/* Cards */
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-stroke-2); border-radius: 24px; overflow: hidden; height: 100%; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.blog-card[hidden] { display: none; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -28px rgba(26,26,28,.35); }
.blog-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-background-3); margin: 0; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
.blog-card-cat { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); font-size: 12px; font-weight: 500; color: var(--color-secondary); }
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-title { font-size: 1.3rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--color-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-excerpt { color: rgba(26,26,28,.6); font-size: var(--text-tagline-1); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .blog-read { margin-top: auto; padding-top: 6px; }

/* Article page */
.post-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.post-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--color-primary-500), var(--color-ns-cyan)); transform: scaleX(0); transform-origin: left; }
.post-head { max-width: 920px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.post-title { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; color: var(--color-secondary); }
.post-byline { display: flex; align-items: center; gap: 12px; text-align: left; }
.post-byline strong { display: block; font-weight: 500; color: var(--color-secondary); }
.post-avatar { width: 48px; height: 48px; border-radius: 999px; background: #fff; border: 1px solid var(--color-stroke-2); display: flex; align-items: center; justify-content: center; padding: 8px; flex-shrink: 0; }
.post-avatar img { width: 100%; height: auto; }
.post-cover { margin: -8px auto 0; border-radius: 32px; overflow: hidden; max-width: 1200px; aspect-ratio: 16 / 8; background: var(--color-background-3); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); align-items: start; max-width: 1200px; margin: 0 auto; }
.post-body { font-size: 1.125rem; line-height: 1.8; color: rgba(26,26,28,.82); max-width: 760px; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: var(--color-secondary); margin-top: 2em; scroll-margin-top: 120px; }
.post-body h3 { font-size: 1.4rem; line-height: 1.3; font-weight: 500; color: var(--color-secondary); margin-top: 1.6em; }
.post-body h4 { font-size: 1.15rem; font-weight: 600; color: var(--color-secondary); margin-top: 1.4em; }
.post-body h2 + *, .post-body h3 + *, .post-body h4 + * { margin-top: .6em; }
.post-body > :first-child { margin-top: 0; }
.post-body > p:first-child { font-size: 1.3rem; line-height: 1.65; color: var(--color-secondary); }
.post-body strong { font-weight: 600; color: var(--color-secondary); }
.post-body a { color: var(--color-primary-500); text-decoration: underline; text-underline-offset: 3px; }
.post-body u:has(a) { text-decoration: none; }
.post-body ul, .post-body ol { padding-left: 0; list-style: none; }
.post-body li { position: relative; padding-left: 34px; }
.post-body li + li { margin-top: .5em; }
.post-body ul > li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 10px; height: 10px; border-radius: 999px; background: var(--color-primary-500); box-shadow: 0 0 0 4px rgba(134,79,254,.15); }
.post-body ol { counter-reset: post-ol; }
.post-body ol > li { counter-increment: post-ol; }
.post-body ol > li::before { content: counter(post-ol); position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 999px; background: var(--color-secondary); color: #fff; font-size: 13px; line-height: 24px; text-align: center; font-weight: 500; }
.post-body blockquote { border-left: 4px solid var(--color-primary-500); background: var(--color-background-3); padding: 20px 24px; border-radius: 0 16px 16px 0; font-size: 1.25rem; color: var(--color-secondary); }
.post-body img { border-radius: 20px; width: 100%; height: auto; }
.post-body hr { border: 0; border-top: 1px solid var(--color-stroke-2); margin: 2.4em 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.post-body th, .post-body td { border: 1px solid var(--color-stroke-2); padding: 10px 14px; text-align: left; }
.post-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-share-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 3em !important; padding-top: 28px; border-top: 1px solid var(--color-stroke-2); font-weight: 500; color: var(--color-secondary); }
.post-share { display: flex; flex-wrap: wrap; gap: 8px; }
.post-share a, .post-share button {
  width: 42px; height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-stroke-2); background: #fff; color: var(--color-secondary); cursor: pointer; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.post-share a:hover, .post-share button:hover { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.post-share .check-icon { display: none; }
.post-share button.is-copied { background: var(--color-ns-green); border-color: var(--color-ns-green); color: var(--color-secondary); }
.post-share button.is-copied .copy-icon { display: none; }
.post-share button.is-copied .check-icon { display: block; }

.post-aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.post-aside-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: rgba(26,26,28,.5); margin-bottom: 12px; }
.post-toc { border-left: 2px solid var(--color-stroke-2); padding-left: 18px; }
.post-toc ol { display: flex; flex-direction: column; gap: 10px; }
.post-toc a { display: block; font-size: 15px; line-height: 1.4; color: rgba(26,26,28,.6); transition: color .2s; position: relative; }
.post-toc a:hover { color: var(--color-secondary); }
.post-toc a.is-current { color: var(--color-secondary); font-weight: 500; }
.post-toc a.is-current::before { content: ""; position: absolute; left: -20px; top: 0; bottom: 0; width: 2px; background: var(--color-primary-500); }
.post-aside-card { padding: 20px; border: 1px solid var(--color-stroke-2); border-radius: 20px; }
.post-aside-cta { padding: 24px; border-radius: 24px; background: var(--color-secondary); color: rgba(255,255,255,.7); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.post-aside-cta-title { font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: #fff; }
.post-aside-cta .btn { margin-top: 8px; }

@media (max-width: 1023px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-media { min-height: 0; aspect-ratio: 16 / 9; }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
  .post-toc { display: none; }
  .post-aside-card { display: none; }
}
@media (max-width: 767px) {
  .blog-featured { border-radius: 24px; }
  .post-cover { border-radius: 20px; aspect-ratio: 16 / 10; }
  .post-body { font-size: 1.05rem; }
  .post-body > p:first-child { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-featured, .blog-featured-media img, .blog-card, .blog-card-media img, .blog-read svg { transition: none; }
}
/* Theme sets a global <p> size/colour; let article text inherit the article typography. */
.post-body p, .post-body li { font-size: inherit; line-height: inherit; color: inherit; }
.post-body > p:first-child { font-size: 1.3rem; color: var(--color-secondary); }
.post-aside-cta p { color: rgba(255,255,255,.7); font-size: 15px; }
.post-aside-cta p.post-aside-cta-title { color: #fff; font-size: 1.25rem; }
.blog-featured-cat { padding: 6px 12px; border-radius: 999px; background: var(--color-ns-green); color: var(--color-secondary); font-size: 12px; font-weight: 500; }
.blog-featured-excerpt { color: rgba(255,255,255,.65) !important; }
@media (max-width: 767px) { .post-body > p:first-child { font-size: 1.15rem; } }

/* ---------- Home page ---------- */
.hm-hero { background: var(--color-background-3); padding: 150px 0 72px; }
.hm-hero-glow { position: absolute; width: 1000px; max-width: 140vw; top: -380px; left: -340px; opacity: .45; transform: rotate(160deg); pointer-events: none; user-select: none; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hm-hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--color-stroke-2); font-size: var(--text-tagline-2); color: var(--color-secondary); }
.hm-eyebrow-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--color-ns-green); box-shadow: 0 0 0 4px rgba(198,245,111,.35); animation: hm-pulse 2s ease-in-out infinite; }
@keyframes hm-pulse { 50% { box-shadow: 0 0 0 8px rgba(198,245,111,0); } }
.hm-hero-title { font-size: clamp(2.75rem, 6.2vw, 5.5rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; color: var(--color-secondary); }
.hm-underline { position: relative; display: inline-block; color: var(--color-primary-500); }
.hm-underline svg { position: absolute; left: 0; right: 0; bottom: -0.08em; width: 100%; height: .22em; color: var(--color-ns-yellow); z-index: -1; }
.hm-underline svg path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: hm-draw 1.1s .9s cubic-bezier(.6,.1,.2,1) forwards; }
@keyframes hm-draw { to { stroke-dashoffset: 0; } }
.hm-hero-sub { max-width: 540px; font-size: 1.125rem; }
.hm-trust { display: flex; align-items: center; gap: 16px; padding-top: 4px; }

/* Poster wall */
.hm-wall {
  position: relative; height: 640px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  transform: rotate(-4deg); margin-right: -40px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.hm-wall-col { overflow: hidden; }
.hm-wall-track { display: flex; flex-direction: column; gap: 16px; animation: hm-up 36s linear infinite; }
.hm-wall-col-2 .hm-wall-track { animation-name: hm-down; animation-duration: 42s; }
.hm-wall-col-3 .hm-wall-track { animation-duration: 32s; }
.hm-wall:hover .hm-wall-track { animation-play-state: paused; }
@keyframes hm-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes hm-down { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }
.hm-wall-card { display: block; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--color-background-4); box-shadow: 0 18px 40px -24px rgba(26,26,28,.45); }
.hm-wall-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hm-wall-card:hover img { transform: scale(1.06); }
.hm-wall-badge { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%) rotate(4deg); z-index: 2; padding: 10px 18px; border-radius: 999px; background: var(--color-secondary); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(26,26,28,.5); }

.hm-ribbons { margin-top: -6px; }

@media (max-width: 1023px) {
  .hm-hero { padding-top: 130px; }
  .hm-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hm-wall { height: 460px; margin-right: 0; transform: rotate(-3deg); }
}
@media (max-width: 767px) {
  .hm-hero { padding: 120px 0 48px; }
  .hm-hero-copy { gap: 22px; }
  .hm-hero-sub { font-size: 1rem; }
  .hm-wall { height: 360px; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-wall-track { gap: 10px; }
  .hm-wall-card { border-radius: 14px; }
  .hm-trust { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-wall-track, .hm-eyebrow-dot { animation: none; }
  .hm-underline svg path { animation: none; stroke-dashoffset: 0; }
}

/* Home: numbers band (replaces the text ribbons) */
.hm-numbers { padding: 56px 0 24px; background: #fff; }
.hm-numbers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-stroke-2); border-bottom: 1px solid var(--color-stroke-2); }
.hm-number { position: relative; padding: 36px 28px; display: flex; flex-direction: column; gap: 6px; }
.hm-number + .hm-number { border-left: 1px solid var(--color-stroke-2); }
.hm-number::before { content: ""; position: absolute; top: -1px; left: 28px; width: 48px; height: 4px; border-radius: 0 0 4px 4px; }
.hm-accent-yellow::before { background: var(--color-ns-yellow); }
.hm-accent-green::before { background: var(--color-ns-green); }
.hm-accent-cyan::before { background: var(--color-ns-cyan); }
.hm-accent-purple::before { background: var(--color-primary-500); }
.hm-number-value { font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: var(--color-secondary); font-variant-numeric: tabular-nums; }
.hm-number-label { font-size: 1.125rem; font-weight: 500; color: var(--color-secondary); margin-top: 10px; }
.hm-number-note { font-size: var(--text-tagline-2); color: rgba(26,26,28,.55); }
@media (max-width: 1023px) {
  .hm-numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-number:nth-child(3) { border-left: 0; }
  .hm-number:nth-child(n+3) { border-top: 1px solid var(--color-stroke-2); }
}
@media (max-width: 767px) {
  .hm-numbers { padding: 32px 0 8px; }
  .hm-number { padding: 26px 16px; }
  .hm-number::before { left: 16px; }
  .hm-number-label { font-size: 1rem; }
}

/* ---------- Home: services showcase (list + panel) ---------- */
.hs-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hs-list { border-top: 1px solid var(--color-stroke-2); }
.hs-item { border-bottom: 1px solid var(--color-stroke-2); }
.hs-trigger {
  width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 12px;
  padding: 22px 8px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.hs-num { font-size: 14px; font-weight: 500; color: rgba(26,26,28,.4); transition: color .3s; }
.hs-name {
  font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em;
  color: rgba(26,26,28,.28); transition: color .35s, transform .45s cubic-bezier(.2,.8,.2,1);
}
.hs-arrow {
  width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary); opacity: 0; transform: translateX(-10px) rotate(-45deg);
  transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1), background-color .3s;
}
.hs-trigger:hover .hs-name, .hs-trigger:focus-visible .hs-name { color: rgba(26,26,28,.6); }
.hs-item.is-active .hs-name { color: var(--color-secondary); transform: translateX(8px); }
.hs-item.is-active .hs-num { color: var(--color-primary-500); }
.hs-item.is-active .hs-arrow { opacity: 1; transform: none; background: var(--color-ns-yellow); }
.hs-trigger:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: -2px; border-radius: 12px; }
.hs-inline { display: none; }

.hs-stage { position: sticky; top: 120px; }
.hs-panel {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(28px, 3.5vw, 44px); min-height: 480px;
  display: flex; flex-direction: column; gap: 28px;
}
.hs-panel.is-active { animation: hs-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes hs-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.hs-panel::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -160px; bottom: -180px; border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.35), rgba(255,255,255,0) 65%); pointer-events: none;
}
.hs-panel-top { display: flex; align-items: center; justify-content: space-between; }
.hs-icon { width: 64px; height: 64px; border-radius: 20px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hs-panel-num { font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 500; line-height: .9; letter-spacing: -0.05em; opacity: .2; }
.hs-panel-body { margin-top: auto; position: relative; z-index: 1; }
.hs-panel-title { font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; color: inherit; margin-bottom: 12px; }
.hs-panel-desc { color: inherit; opacity: .75; font-size: 1.05rem; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hs-chips li { font-size: 13px; line-height: 1; padding: 9px 13px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
.hs-cta {
  position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; background: var(--color-secondary); color: #fff; font-weight: 500;
  transition: transform .3s, background-color .3s;
}
.hs-cta:hover { transform: translateY(-2px); }
.hs-dark { background: var(--color-secondary); color: #fff; }
.hs-dark .hs-cta, .hs-purple .hs-cta { background: #fff; color: var(--color-secondary); }
.hs-dark::after { background: radial-gradient(circle, rgba(134,79,254,.55), rgba(134,79,254,0) 65%); }
.hs-yellow { background: var(--color-ns-yellow); color: var(--color-secondary); }
.hs-cyan { background: var(--color-ns-cyan); color: var(--color-secondary); }
.hs-purple { background: var(--color-primary-500); color: #fff; }
.hs-green { background: var(--color-ns-green); color: var(--color-secondary); }
.hs-red { background: var(--color-ns-red); color: var(--color-secondary); }
.hs-panel p { color: inherit; }

@media (max-width: 1023px) {
  .hs-layout { grid-template-columns: 1fr; }
  .hs-stage { display: none; }
  .hs-trigger { grid-template-columns: 40px minmax(0, 1fr) 36px; padding: 18px 4px; }
  .hs-name { font-size: clamp(1.35rem, 5.4vw, 1.9rem); }
  .hs-item.is-active .hs-name { transform: none; }
  .hs-arrow { opacity: 1; transform: rotate(90deg); width: 36px; height: 36px; background: var(--color-background-3); }
  .hs-item.is-active .hs-arrow { transform: rotate(-90deg); }
  .hs-item.is-active .hs-inline { display: block; padding: 0 4px 22px 52px; animation: hs-in .4s ease; }
  .hs-inline p { color: rgba(26,26,28,.7); }
  .hs-inline .hs-chips li { opacity: .7; }
}
@media (max-width: 767px) {
  .hs-item.is-active .hs-inline { padding-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-panel.is-active, .hs-item.is-active .hs-inline { animation: none; }
  .hs-name, .hs-arrow { transition: none; }
}

/* Home hero tag (replaces the white pill) */
.hm-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px;
  padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--color-secondary); color: #fff;
  box-shadow: 0 12px 28px -14px rgba(26,26,28,.55); transform: rotate(-2deg); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.hm-tag:hover { transform: rotate(0deg) translateY(-2px); }
.hm-tag-year {
  padding: 7px 12px; border-radius: 999px; background: var(--color-ns-yellow); color: var(--color-secondary);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.hm-tag-place { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-tagline-2); font-weight: 500; }
.hm-tag-place svg { color: var(--color-ns-green); }
@media (prefers-reduced-motion: reduce) { .hm-tag { transition: none; } }

/* ---------- Services page: stacking cards ---------- */
.sv-stack { display: flex; flex-direction: column; gap: 28px; }
.sv-card {
  position: sticky; top: calc(110px + var(--i) * 18px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: stretch;
  min-height: 480px; padding: clamp(28px, 3.5vw, 48px); border-radius: 36px; overflow: hidden;
  box-shadow: 0 -18px 40px -28px rgba(26,26,28,.35);
}
.sv-card-copy { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.sv-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; padding-bottom: 28px; }
.sv-icon { width: 60px; height: 60px; border-radius: 18px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sv-count { font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.sv-count span { opacity: .5; font-weight: 500; }
.sv-title { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 500; color: inherit; }
.sv-desc { color: inherit; opacity: .75; font-size: 1.075rem; max-width: 520px; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-chips li { font-size: 13px; line-height: 1; padding: 9px 13px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
.sv-cta {
  align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; background: var(--color-secondary); color: #fff; font-weight: 500;
  transition: transform .3s;
}
.sv-cta:hover { transform: translateY(-2px); }
.sv-dark .sv-cta, .sv-purple .sv-cta { background: #fff; color: var(--color-secondary); }

.sv-card-visual { position: relative; min-height: 380px; }
.sv-poster {
  position: absolute; width: 58%; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; margin: 0;
  border: 6px solid rgba(255,255,255,.9); box-shadow: 0 30px 50px -30px rgba(0,0,0,.55);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.sv-poster img { width: 100%; height: 100%; object-fit: cover; }
.sv-poster-a { left: 4%; top: 8%; transform: rotate(-7deg); z-index: 2; }
.sv-poster-b { right: 2%; bottom: 4%; transform: rotate(6deg); z-index: 1; }
.sv-card:hover .sv-poster-a { transform: rotate(-10deg) translate(-8px, -6px); }
.sv-card:hover .sv-poster-b { transform: rotate(9deg) translate(8px, 6px); }
.sv-big-num {
  position: absolute; right: 0; top: -10px; font-size: clamp(6rem, 12vw, 11rem); line-height: 1; font-weight: 600;
  letter-spacing: -0.06em; opacity: .12; pointer-events: none;
}

.sv-dark { background: var(--color-secondary); color: #fff; }
.sv-yellow { background: var(--color-ns-yellow); color: var(--color-secondary); }
.sv-cyan { background: var(--color-ns-cyan); color: var(--color-secondary); }
.sv-purple { background: var(--color-primary-500); color: #fff; }
.sv-green { background: var(--color-ns-green); color: var(--color-secondary); }
.sv-light { background: var(--color-background-3); color: var(--color-secondary); border: 1px solid var(--color-stroke-2); }
.sv-card p { color: inherit; }

@media (max-width: 1023px) {
  .sv-card { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .sv-card-visual { min-height: 300px; max-width: 460px; width: 100%; margin: 0 auto; }
  .sv-card-top { padding-bottom: 12px; }
}
@media (max-width: 767px) {
  .sv-stack { gap: 16px; }
  .sv-card { position: relative; top: auto; border-radius: 26px; padding: 24px; box-shadow: none; }
  .sv-card-visual { min-height: 240px; }
  .sv-poster { border-width: 4px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-poster, .sv-cta { transition: none; }
}

/* ---------- Contact page ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ct-intro { display: flex; flex-direction: column; gap: 24px; padding-top: 12px; }
.ct-intro .hero-badge { align-self: flex-start; }
.ct-title { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; color: var(--color-secondary); }
.ct-lead { font-size: 1.125rem; max-width: 500px; }
.ct-direct { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.ct-direct-link {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 20px;
  background: #fff; border: 1px solid var(--color-stroke-2); max-width: 440px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.ct-direct-link:hover { transform: translateX(6px); border-color: var(--color-secondary); box-shadow: 0 12px 28px -18px rgba(26,26,28,.4); }
.ct-direct-link small { display: block; font-size: 13px; color: rgba(26,26,28,.55); }
.ct-direct-link > span:last-child { font-size: 1.125rem; font-weight: 500; color: var(--color-secondary); word-break: break-word; }
.ct-direct-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-secondary); flex-shrink: 0; }
.ct-yellow { background: var(--color-ns-yellow); }
.ct-green { background: var(--color-ns-green); }
.ct-cyan { background: var(--color-ns-cyan); }
.ct-whatsapp {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: #25D366; color: #0b3d1e; font-weight: 600; transition: transform .3s, box-shadow .3s;
}
.ct-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(37,211,102,.7); }

/* Form card */
.ct-form-card { background: #fff; border-radius: 32px; padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 40px 80px -40px rgba(26,26,28,.35); border: 1px solid var(--color-stroke-2); scroll-margin-top: 120px; }
.ct-form-title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; color: var(--color-secondary); }
.ct-form-sub { font-size: var(--text-tagline-2); color: rgba(26,26,28,.55); margin: 6px 0 24px; }
.ct-errors { margin-bottom: 20px; padding: 14px 16px; border-radius: 16px; background: #fff2ee; border: 1px solid var(--color-ns-red); color: var(--color-secondary); font-size: 14px; }
.ct-errors p { font-weight: 600; margin-bottom: 4px; }
.ct-errors ul { padding-left: 1.1rem; list-style: disc; }
.ct-form { display: flex; flex-direction: column; gap: 16px; }
.ct-fieldset { border: 0; padding: 0; margin: 0 0 6px; }
.ct-fieldset legend { font-size: 15px; font-weight: 500; color: var(--color-secondary); margin-bottom: 12px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { position: relative; cursor: pointer; }
.ct-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--color-stroke-3); color: var(--color-secondary); background: var(--color-background-2);
  transition: background-color .2s, border-color .2s, color .2s;
}
.ct-chip:hover span { border-color: var(--color-secondary); }
.ct-chip input:checked + span { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.ct-chip input:checked + span::before { content: "✓"; font-size: 12px; color: var(--color-ns-green); }
.ct-chip input:focus-visible + span { outline: 2px solid var(--color-primary-500); outline-offset: 2px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-field { position: relative; }
.ct-field input, .ct-field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 16px; border: 1px solid var(--color-stroke-3);
  background: var(--color-background-2); font: inherit; font-size: 1rem; color: var(--color-secondary);
  transition: border-color .2s, background-color .2s, box-shadow .2s; resize: vertical;
}
.ct-field textarea { min-height: 140px; }
.ct-field label {
  position: absolute; left: 18px; top: 18px; font-size: 1rem; color: rgba(26,26,28,.5); pointer-events: none;
  transition: top .18s ease, font-size .18s ease, color .18s ease;
}
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--color-secondary); background: #fff; box-shadow: 0 0 0 4px rgba(134,79,254,.12); }
.ct-field input:focus + label, .ct-field input:not(:placeholder-shown) + label,
.ct-field textarea:focus + label, .ct-field textarea:not(:placeholder-shown) + label { top: 8px; font-size: 12px; color: var(--color-primary-500); }
.ct-submit {
  margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 16px 24px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: 1.05rem;
  background: var(--color-secondary); color: #fff; transition: background-color .25s, transform .25s;
}
.ct-submit:hover { background: var(--color-primary-500); transform: translateY(-2px); }
.ct-submit svg { transition: transform .25s; }
.ct-submit:hover svg { transform: translateX(4px); }

/* Steps */
.ct-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ct-step { padding: 28px; border-radius: 24px; background: var(--color-background-3); display: flex; flex-direction: column; gap: 10px; }
.ct-step-num { width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--color-secondary); margin-bottom: 8px; }
.ct-step h3 { font-size: 1.35rem; font-weight: 500; color: var(--color-secondary); }
.ct-step p { color: rgba(26,26,28,.65); }

/* Visit */
.ct-visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border-radius: 32px; overflow: hidden; background: var(--color-secondary); }
.ct-visit-copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ct-visit-copy h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; }
.ct-visit-copy address { font-style: normal; color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 420px; }
.ct-socials { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); width: 100%; }
.ct-socials a { color: rgba(255,255,255,.75); font-weight: 500; transition: color .2s; }
.ct-socials a:hover { color: var(--color-ns-green); }
.ct-map { min-height: 380px; background: var(--color-background-9); }
.ct-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.2); }

@media (max-width: 1023px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-visit { grid-template-columns: 1fr; }
  .ct-steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-form-card { border-radius: 24px; }
  .ct-visit { border-radius: 24px; }
  .ct-map, .ct-map iframe { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-direct-link, .ct-whatsapp, .ct-submit, .ct-submit svg, .ct-field label { transition: none; }
}

/* ---------- Legal pages ---------- */
.lg-head { max-width: 860px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.lg-title { font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500; color: var(--color-secondary); }
.lg-intro { font-size: 1.125rem; max-width: 620px; }
.lg-updated { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--color-stroke-2); font-size: 14px; color: var(--color-secondary); }
.lg-body { font-size: 1.05rem; }
.lg-body > p:first-child { font-size: 1.15rem; }
.lg-body h2 { padding-top: 1.4em; border-top: 1px solid var(--color-stroke-2); }
.lg-body > h2:first-child { padding-top: 0; border-top: 0; }
.lg-body h3 { font-size: 1.2rem; }
.lg-links ul { display: flex; flex-direction: column; gap: 10px; }
.lg-links a { font-size: 15px; color: rgba(26,26,28,.65); transition: color .2s; }
.lg-links a:hover { color: var(--color-secondary); }
.lg-links a[aria-current="page"] { color: var(--color-secondary); font-weight: 500; }
.lg-links a[aria-current="page"]::before { content: "→ "; color: var(--color-primary-500); }
@media (max-width: 1023px) { .lg-layout .post-aside-card { display: block; } }

/* ---------- Scroll performance ---------- */
/* Marquees: compositor-only movement, paused when off screen. */
.svc-work-track, .hm-wall-track, .svc-ribbon-track { will-change: transform; backface-visibility: hidden; }
[data-marquee].is-offscreen .svc-work-track, [data-marquee].is-offscreen .hm-wall-track { animation-play-state: paused; }
/* Work strip: static edge fades instead of a mask over moving content. */
.svc-work-strip { -webkit-mask-image: none; mask-image: none; position: relative; }
.svc-work-strip::before, .svc-work-strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; z-index: 2; pointer-events: none; }
.svc-work-strip::before { left: 0; background: linear-gradient(90deg, var(--color-secondary), rgba(26,26,28,0)); }
.svc-work-strip::after { right: 0; background: linear-gradient(270deg, var(--color-secondary), rgba(26,26,28,0)); }
/* Stacking cards: no big blurred shadows to repaint while scrolling; isolate their painting. */
.sv-card { box-shadow: none; contain: paint; border-top: 1px solid rgba(255,255,255,.18); }
.sv-light { border-top-color: var(--color-stroke-2); }
.sv-poster { box-shadow: 0 16px 28px -20px rgba(0,0,0,.5); }

/* Blog post header: balanced title, full (uncropped) cover overlapping the hero */
.post-title { text-wrap: balance; max-width: 1000px; }
.post-hero.has-cover { padding-bottom: clamp(140px, 16vw, 220px); }
.post-cover {
  position: relative; z-index: 2; max-width: 1040px; aspect-ratio: auto; background: none;
  margin: calc(-1 * clamp(110px, 13vw, 180px)) auto 0; border-radius: 28px;
  box-shadow: 0 40px 80px -40px rgba(26,26,28,.45);
}
.post-cover img { display: block; width: 100%; height: auto; object-fit: initial; }
@media (max-width: 767px) {
  .post-hero.has-cover { padding-bottom: 110px; }
  .post-cover { margin-top: -80px; border-radius: 18px; }
}

/* ---------- Home: blog section ---------- */
.hb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.hb-lead { display: flex; flex-direction: column; background: #fff; border-radius: 28px; overflow: hidden; border: 1px solid var(--color-stroke-2); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.hb-lead:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(26,26,28,.35); }
.hb-lead-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin: 0; background: var(--color-background-4); }
.hb-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hb-lead:hover .hb-lead-media img { transform: scale(1.04); }
.hb-lead-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.hb-lead-title { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: var(--color-secondary); }
.hb-lead-excerpt { color: rgba(26,26,28,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-lead .blog-read { margin-top: 6px; }

.hb-list { display: flex; flex-direction: column; gap: 16px; }
.hb-list > li { flex: 1; }
.hb-item {
  height: 100%; display: grid; grid-template-columns: 148px minmax(0, 1fr) 40px; gap: 18px; align-items: center;
  padding: 14px; background: #fff; border-radius: 24px; border: 1px solid var(--color-stroke-2);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
.hb-item:hover { transform: translateX(4px); border-color: var(--color-secondary); }
.hb-item-media { width: 148px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin: 0; background: var(--color-background-4); }
.hb-item-media img { width: 100%; height: 100%; object-fit: cover; }
.hb-item-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hb-item-cat { padding: 3px 10px; border-radius: 999px; background: var(--color-background-3); color: var(--color-secondary); font-size: 12px; font-weight: 500; }
.hb-item-title { font-size: 1.15rem; line-height: 1.3; font-weight: 500; color: var(--color-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-item-date { font-size: 13px; color: rgba(26,26,28,.5); }
.hb-item-arrow { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--color-background-3); color: var(--color-secondary); transition: background-color .3s, color .3s, transform .3s; }
.hb-item:hover .hb-item-arrow { background: var(--color-secondary); color: #fff; transform: rotate(45deg); }

@media (max-width: 1023px) {
  .hb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hb-lead { border-radius: 22px; }
  .hb-lead-body { padding: 20px; }
  .hb-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 20px; }
  .hb-item-media { width: 96px; border-radius: 12px; }
  .hb-item-arrow { display: none; }
  .hb-item-title { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .hb-lead, .hb-lead-media img, .hb-item, .hb-item-arrow { transition: none; } }
/* Home blog: right-hand cards fill their half of the column with a full-height image. */
@media (min-width: 1024px) {
  .hb-item { grid-template-columns: 44% minmax(0, 1fr) 40px; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
  .hb-item-media { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .hb-item-media img { transition: transform .6s ease; }
  .hb-item:hover .hb-item-media img { transform: scale(1.05); }
  .hb-item-body { padding: 24px 12px 24px 24px; justify-content: center; gap: 10px; }
  .hb-item-title { font-size: 1.3rem; -webkit-line-clamp: 3; }
  .hb-item-arrow { align-self: end; margin: 0 18px 18px 0; }
  .hb-item:hover { transform: translateY(-4px); }
}

/* ---------- Home: community reach ---------- */
.hr-rows { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 128px); }
.hr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hr-row-reverse .hr-copy { order: 2; }
.hr-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 520px; }
.hr-points { display: flex; flex-wrap: wrap; gap: 28px; padding: 8px 0 6px; }
.hr-points li { display: flex; flex-direction: column; }
.hr-points strong { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--color-secondary); }
.hr-points span { font-size: 14px; color: rgba(26,26,28,.55); }

.hr-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 480px; }
.hr-glow { position: absolute; left: 50%; bottom: 30px; width: 74%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(240,128,240,.55), rgba(134,79,254,.25) 55%, rgba(134,79,254,0) 72%); }
.hr-glow-alt { background: radial-gradient(circle at 50% 50%, rgba(131,231,238,.6), rgba(198,245,111,.25) 55%, rgba(198,245,111,0) 72%); }
.hr-person { position: relative; width: min(100%, 420px); height: auto; filter: grayscale(1); }

.hr-dash {
  position: absolute; right: 0; bottom: 24px; width: min(58%, 320px); margin: 0; padding: 6px 4px;
  background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(26,26,28,.45);
  transform: rotate(2deg); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.hr-dash img { display: block; width: 100%; height: auto; }
.hr-dash img + img { border-top: 1px solid var(--color-stroke-2); }
.hr-visual:hover .hr-dash { transform: rotate(0) translateY(-4px); }

.hr-notes { position: absolute; left: 0; bottom: 40px; width: min(70%, 380px); display: flex; flex-direction: column; gap: 10px; }
.hr-notes img {
  display: block; width: 100%; height: auto; background: #fff; border-radius: 18px;
  box-shadow: 0 20px 40px -22px rgba(26,26,28,.45); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.hr-notes img:nth-child(2) { margin-left: 8%; width: 92%; }
.hr-notes img:nth-child(3) { margin-left: 16%; width: 84%; }
.hr-visual:hover .hr-notes img { transform: translateX(6px); }

@media (max-width: 1023px) {
  .hr-row { grid-template-columns: 1fr; }
  .hr-row-reverse .hr-copy { order: 0; }
  .hr-copy { max-width: none; }
  .hr-visual { min-height: 0; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
  .hr-person { width: 82%; }
  .hr-dash { width: 62%; bottom: 8px; border-radius: 14px; }
  .hr-notes { width: 78%; bottom: 12px; gap: 6px; }
  .hr-notes img { border-radius: 12px; }
  .hr-points strong { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .hr-dash, .hr-notes img { transition: none; } }
/* Community reach: keep the person visible, cards to the side. */
.hr-visual { justify-content: flex-start; padding-left: 4%; }
.hr-row-reverse .hr-visual { justify-content: flex-end; padding-left: 0; padding-right: 4%; }
.hr-person { width: min(70%, 380px); }
.hr-glow { left: 36%; }
.hr-row-reverse .hr-glow { left: 64%; }
.hr-dash { width: min(46%, 280px); right: 0; bottom: 8px; }
.hr-notes { width: min(56%, 330px); bottom: 24px; }
@media (max-width: 767px) {
  .hr-visual, .hr-row-reverse .hr-visual { padding: 0; }
  .hr-person { width: 66%; }
  .hr-dash { width: 54%; bottom: 0; }
  .hr-notes { width: 64%; bottom: 6px; }
}

/* ---------- Preloader + page transition ---------- */
.pl, .pt {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: var(--color-background-3, #f4f5f8); overflow: hidden;
}
.pl::before, .pt::before {
  content: ""; position: absolute; width: 640px; height: 640px; max-width: 120vw; max-height: 120vw; border-radius: 999px;
  background: radial-gradient(circle, rgba(240,128,240,.35), rgba(134,79,254,.18) 45%, rgba(134,79,254,0) 70%);
  animation: pl-breathe 2.4s ease-in-out infinite;
}
.pl-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pl-logo { width: 160px; height: auto; transform-origin: 50% 50%; }
.pl .pl-logo { animation: pl-flip 1s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
.pl-progress { display: flex; align-items: center; gap: 12px; }
.pl-bar { width: 180px; height: 4px; border-radius: 999px; background: rgba(26,26,28,.08); overflow: hidden; }
.pl-bar span { display: block; width: 100%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--color-primary-500), var(--color-ns-cyan)); transform: scaleX(0); transform-origin: left center; transition: transform .15s linear; }
.pl-bar-loop span { width: 40%; transform: none; animation: pl-slide 1.1s ease-in-out infinite; }
.pl-count { min-width: 3.2em; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(26,26,28,.7); text-align: right; }
.pl-note { font-size: 13px; letter-spacing: .06em; color: rgba(26,26,28,.5); animation: pl-in .6s .35s cubic-bezier(.2,.8,.2,1) both; }

/* Exit: the curtain lifts up and the content fades slightly ahead of it. */
.pl { clip-path: inset(0 0 0 0); transition: clip-path .85s cubic-bezier(.76, 0, .24, 1), visibility 0s .85s; }
.pl.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.pl.is-done .pl-inner { opacity: 0; transform: translateY(-24px); transition: opacity .35s ease, transform .5s ease; }
html:not(.pl-finished) body { overflow: hidden; }

/* Repeat page views this session: logo already upright (the page transition just showed it). */
.pl-quick .pl .pl-logo, .pl-quick .pl .pl-note { animation: none; }
.pl-quick .pl { transition-duration: .6s, 0s; transition-delay: 0s, .6s; }

/* Page transition: drops down from the top when an internal link is clicked. */
.pt { z-index: 10001; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s cubic-bezier(.76, 0, .24, 1), visibility 0s .45s; }
.pt.is-active { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s cubic-bezier(.76, 0, .24, 1), visibility 0s 0s; }
.pt .pl-inner { opacity: 0; transform: translateY(16px); transition: opacity .3s ease .2s, transform .4s ease .2s; }
.pt.is-active .pl-inner { opacity: 1; transform: none; }
.pt .pl-note { animation: none; }

@keyframes pl-flip { 0% { opacity: 0; transform: rotate(180deg) scale(.85); } 35% { opacity: 1; } 100% { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes pl-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes pl-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pl-breathe { 50% { transform: scale(1.08); opacity: .8; } }

/* ---------- Skeleton loading ---------- */
/* Tint is an inset shadow so the box keeps its own background (works on light and dark sections). */
.sk { overflow: hidden; box-shadow: inset 0 0 0 100vmax rgba(128, 136, 154, .16); }
.sk-rel { position: relative; }
.sk::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 80%);
  transform: translateX(-100%); animation: sk-shimmer 1.3s ease-in-out infinite;
}
.svc-work .sk::after, .sv-dark .sk::after, .ab-team .sk::after, .sd-how .sk::after, .bg-secondary.sk::after { background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.12) 50%, rgba(255,255,255,0) 80%); }
.sk-img { opacity: 0; transition: opacity .45s ease; }
.sk-img.sk-loaded { opacity: 1; }
.post-cover.sk { min-height: 300px; }
.hr-visual .sk { box-shadow: none; }
.hr-visual .sk::after { display: none; }
@keyframes sk-shimmer { to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .pl::before, .pt::before, .pl-bar span, .pl-logo, .pl-note, .sk::after { animation: none !important; }
  .pl, .pt, .pl.is-done .pl-inner, .sk-img { transition: none !important; }
}

/* Spam honeypot field */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Services page: type-led grid (replaces stacking cards) ---------- */
.sg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--color-stroke-2); border-left: 1px solid var(--color-stroke-2); border-radius: 28px; overflow: hidden; }
.sg-cell { position: relative; border-right: 1px solid var(--color-stroke-2); border-bottom: 1px solid var(--color-stroke-2); isolation: isolate; }
.sg-cell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s cubic-bezier(.2,.8,.2,1); background: var(--sg-bg);
}
.sg-link { display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 420px; padding: clamp(28px, 3vw, 40px); color: var(--color-secondary); }
.sg-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; padding-bottom: 36px; }
.sg-num {
  font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: .85; font-weight: 600; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(26,26,28,.25); transition: color .4s, -webkit-text-stroke-color .4s;
}
.sg-icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-background-3); transition: background-color .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.sg-title { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; color: inherit; }
.sg-desc { color: inherit; opacity: .7; font-size: 1rem; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 56px; }
.sg-chips li { font-size: 12.5px; line-height: 1; padding: 8px 11px; border-radius: 999px; border: 1px solid currentColor; opacity: .7; }
.sg-go {
  position: absolute; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; background: var(--color-secondary); color: #fff;
  opacity: 0; transform: translate(-8px, 8px) scale(.85); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1);
}
.sg-yellow { --sg-bg: var(--color-ns-yellow); }
.sg-green { --sg-bg: var(--color-ns-green); }
.sg-cyan { --sg-bg: var(--color-ns-cyan); }
.sg-purple { --sg-bg: var(--color-primary-500); --sg-fg: #fff; }
.sg-peach { --sg-bg: var(--color-ns-red); }
.sg-dark { --sg-bg: var(--color-secondary); --sg-fg: #fff; }

.sg-cell:hover::before, .sg-cell:focus-within::before { transform: scaleY(1); }
.sg-cell:hover .sg-link, .sg-cell:focus-within .sg-link { color: var(--sg-fg, var(--color-secondary)); }
.sg-cell:hover .sg-num, .sg-cell:focus-within .sg-num { color: currentColor; -webkit-text-stroke-color: transparent; }
.sg-cell:hover .sg-icon, .sg-cell:focus-within .sg-icon { background: #fff; transform: rotate(-8deg); }
.sg-cell:hover .sg-go, .sg-cell:focus-within .sg-go { opacity: 1; transform: none; }
.sg-purple:hover .sg-go, .sg-dark:hover .sg-go, .sg-purple:focus-within .sg-go, .sg-dark:focus-within .sg-go { background: #fff; color: var(--color-secondary); }
.sg-link:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: -6px; }
.sg-cell p { color: inherit; }

@media (max-width: 1023px) { .sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .sg-grid { grid-template-columns: 1fr; border-radius: 22px; }
  .sg-link { min-height: 0; padding: 26px 22px 30px; }
  .sg-top { padding-bottom: 20px; }
  .sg-num { font-size: 3.25rem; }
  /* No hover on touch: show the accent as a thin bar and the arrow always. */
  .sg-cell::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sg-bg); }
  .sg-go { opacity: 1; transform: none; width: 40px; height: 40px; right: 18px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .sg-cell::before, .sg-num, .sg-icon, .sg-go { transition: none; } }
/* Grid: align titles across each row (content flows from the top). */
.sg-top { margin-bottom: 0; padding-bottom: 28px; }
.sg-link { padding-bottom: 88px; }
@media (max-width: 767px) { .sg-link { padding-bottom: 76px; } }

/* ---------- Services: hover-reveal project list (replaces work strip) ---------- */
.hv-list { border-top: 1px solid rgba(255,255,255,.12); counter-reset: none; }
.hv-row {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 48px; align-items: center; gap: 20px;
  padding: 26px 8px; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; isolation: isolate;
  transition: padding .4s cubic-bezier(.2,.8,.2,1);
}
.hv-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(134,79,254,.22), rgba(134,79,254,0) 70%);
  opacity: 0; transition: opacity .35s;
}
.hv-num { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.4); letter-spacing: .04em; transition: color .3s; }
.hv-thumb { display: none; }
.hv-name {
  font-size: clamp(1.6rem, 3.6vw, 3.25rem); line-height: 1.08; font-weight: 500; letter-spacing: -0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .45s cubic-bezier(.2,.8,.2,1), color .3s;
}
.hv-cat { font-size: 14px; color: rgba(255,255,255,.55); white-space: nowrap; padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; transition: border-color .3s, color .3s; }
.hv-arrow { width: 48px; height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); transition: background-color .3s, color .3s, transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s; }

/* Dim the others while one row is hovered */
.hv.is-hovering .hv-row { color: rgba(255,255,255,.32); }
.hv.is-hovering .hv-row:hover { color: #fff; padding-left: 20px; }
.hv-row:hover::before, .hv-row:focus-visible::before { opacity: 1; }
.hv-row:hover .hv-num { color: var(--color-ns-green); }
.hv-row:hover .hv-name { transform: translateX(6px); }
.hv-row:hover .hv-cat { border-color: var(--color-ns-yellow); color: var(--color-ns-yellow); }
.hv-row:hover .hv-arrow, .hv-row:focus-visible .hv-arrow { background: var(--color-ns-yellow); border-color: var(--color-ns-yellow); color: var(--color-secondary); transform: rotate(45deg); }
.hv-row:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: -2px; }

/* Floating cursor preview */
.hv-preview {
  position: absolute; left: 0; top: 0; z-index: 20; width: 300px; aspect-ratio: 1 / 1; pointer-events: none;
  border-radius: 22px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7);
  opacity: 0; scale: .7; transition: opacity .25s ease, scale .35s cubic-bezier(.2,.8,.2,1); will-change: transform;
}
.hv-preview.is-on { opacity: 1; scale: 1; }
.hv-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1023px), (hover: none) {
  .hv-preview { display: none; }
  .hv-row { grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 14px; padding: 16px 4px; }
  .hv-num { display: none; }
  .hv-thumb { display: block; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #2a2f38; }
  .hv-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .hv-name { font-size: 1.15rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hv-cat { grid-column: 2; grid-row: 2; justify-self: start; font-size: 12px; padding: 4px 10px; margin-top: -6px; }
  .hv-arrow { grid-column: 3; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .hv-thumb { grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) { .hv-row, .hv-name, .hv-arrow, .hv-preview { transition: none; } }
.hv-hint-touch { display: none; }
@media (max-width: 1023px), (hover: none) { .hv-hint-hover { display: none; } .hv-hint-touch { display: inline; } }

/* ---------- Services: simple recent work grid (replaces hover list) ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sw-card { display: flex; flex-direction: column; gap: 4px; color: var(--color-secondary); }
.sw-img { display: block; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #e9ebf0; margin-bottom: 10px; }
.sw-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-name { font-size: 1.05rem; font-weight: 500; line-height: 1.3; }
.sw-cat { font-size: 14px; color: rgba(26,26,28,.55); }
@media (max-width: 1023px) { .sw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .sw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .sw-name { font-size: .95rem; } }

/* ---------- reCAPTCHA ---------- */
.grecaptcha-badge { visibility: hidden !important; }  /* attribution text is shown next to each form instead */
.rc-note { font-size: 12px; line-height: 1.5; color: rgba(26,26,28,.5); margin: 0; }
.rc-note a { text-decoration: underline; }
.rc-error, .cta-error { font-size: 14px; padding: 10px 14px; border-radius: 12px; background: #fff2ee; border: 1px solid var(--color-ns-red); color: var(--color-secondary); margin: 0; }

/* Partner logo tiles (Admin → Partner Logos) */
.pt-tile{aspect-ratio:346/196}
.pt-tile img{width:100%;height:100%;object-fit:contain;display:block}
.pt-tile a{display:block;width:100%;height:100%}
.pt-tile--light{background:#fff}

/* FAQ (Services page) */
.fq-grid{display:grid;gap:32px}
@media (min-width:1024px){.fq-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:64px}.fq-head{position:sticky;top:120px;align-self:start}}
.fq-list{border-top:1px solid color-mix(in srgb,var(--color-secondary) 12%,transparent)}
.fq-item{border-bottom:1px solid color-mix(in srgb,var(--color-secondary) 12%,transparent)}
.fq-item summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0}
.fq-item summary::-webkit-details-marker{display:none}
.fq-item summary h3{font-size:1.125rem;line-height:1.4;font-weight:500;margin:0}
.fq-item summary:hover h3{color:var(--color-primary-500)}
.fq-item summary:focus-visible{outline:2px solid var(--color-primary-500);outline-offset:4px;border-radius:6px}
.fq-icon{position:relative;flex:none;width:32px;height:32px;border-radius:999px;background:color-mix(in srgb,var(--color-secondary) 7%,transparent);transition:background .2s,transform .3s}
.fq-icon::before,.fq-icon::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:1.5px;background:currentColor;transform:translate(-50%,-50%)}
.fq-icon::after{transform:translate(-50%,-50%) rotate(90deg);transition:transform .3s}
.fq-item[open] .fq-icon{background:var(--color-primary-500);color:#fff}
.fq-item[open] .fq-icon::after{transform:translate(-50%,-50%) rotate(0)}
.fq-item p{padding:0 52px 24px 0;margin:0;max-width:640px;color:color-mix(in srgb,var(--color-secondary) 78%,transparent)}
@media (max-width:640px){.fq-item summary h3{font-size:1rem}.fq-item p{padding-right:0}}

/* FAQ page (/faq) */
.fqp-search{position:relative;margin-top:28px;width:100%;max-width:560px;align-self:stretch;display:block}
.fqp-search svg{position:absolute;left:18px;top:50%;transform:translateY(-50%);opacity:.5;pointer-events:none}
.fqp-search input{width:100%;height:56px;padding:0 20px 0 50px;border-radius:999px;background:#fff;border:1px solid color-mix(in srgb,var(--color-secondary) 12%,transparent);font-size:1rem;outline:none;transition:border-color .2s,box-shadow .2s}
.fqp-search input:focus{border-color:var(--color-primary-500);box-shadow:0 0 0 4px color-mix(in srgb,var(--color-primary-500) 15%,transparent)}
.fqp-layout{display:grid;gap:40px}
@media (min-width:1024px){.fqp-layout{grid-template-columns:260px minmax(0,1fr);gap:72px}.fqp-nav{position:sticky;top:120px;align-self:start}}
.fqp-nav-title{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;opacity:.55;margin-bottom:10px}
.fqp-nav ul{display:flex;flex-wrap:wrap;gap:8px}
@media (min-width:1024px){.fqp-nav ul{flex-direction:column;gap:2px}}
.fqp-nav ul a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px;border-radius:12px;font-size:.95rem;background:color-mix(in srgb,var(--color-secondary) 5%,transparent);transition:background .2s,color .2s}
@media (min-width:1024px){.fqp-nav ul a{background:transparent}}
.fqp-nav ul a:hover{background:color-mix(in srgb,var(--color-primary-500) 10%,transparent);color:var(--color-primary-500)}
.fqp-nav ul a span{font-size:.75rem;min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--color-secondary) 8%,transparent)}
.fqp-help{display:none;margin-top:28px;padding:20px;border-radius:16px;background:var(--color-background-3)}
.fqp-help p:not(.font-medium){font-size:.9rem;opacity:.7;margin-top:4px}
@media (min-width:1024px){.fqp-help{display:block}}
.fqp-group{scroll-margin-top:120px}
.fqp-group + .fqp-group{margin-top:56px}
.fqp-group-title{font-size:1.5rem;line-height:1.3;font-weight:500;margin-bottom:8px}
.fqp-empty{padding:40px 0;text-align:center}
.fqp-empty p:not(.font-medium){opacity:.7;margin-top:6px}

/* Service detail pages (/services/{slug}) */
.sd-hero { background: var(--color-background-3); }
.sd-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .sd-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.sd-eyebrow { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary-500); font-weight: 500; margin-bottom: 14px; }
.sd-title { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 500; }
.sd-title span { color: var(--color-primary-500); }
.sd-intro { margin-top: 22px; max-width: 600px; font-size: 1.08rem; }
.sd-card { background: var(--sg-bg, var(--color-background-3)); color: var(--sg-fg, var(--color-secondary)); border-radius: 28px; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; min-height: 380px; box-shadow: 0 30px 60px -30px rgba(26,26,28,.25); }
.sd-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 32px; }
.sd-card-icon { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sd-card-num { font-size: 4rem; line-height: .8; font-weight: 600; letter-spacing: -0.04em; opacity: .25; }
.sd-card-title { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.sd-card-desc { opacity: .75; }
.sd-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sd-card-chips li { font-size: 12.5px; line-height: 1; padding: 8px 11px; border-radius: 999px; border: 1px solid currentColor; opacity: .75; }
.sd-inc { display: grid; gap: 0; border-top: 1px solid var(--color-stroke-2); }
@media (min-width: 768px) { .sd-inc { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1200px) { .sd-inc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sd-inc li { padding: 28px 0 30px; border-bottom: 1px solid var(--color-stroke-2); }
.sd-inc-num { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--color-primary-500); margin-bottom: 14px; }
.sd-inc h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 500; margin-bottom: 8px; }
.sd-inc p { opacity: .72; }
.sd-how { background: var(--color-secondary); color: #fff; padding: clamp(64px, 8vw, 110px) 0; border-radius: 32px; margin: 0 clamp(8px, 1.4vw, 20px); }
.sd-how-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .sd-how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; } }
.sd-fit { margin-top: 28px; display: grid; gap: 12px; }
.sd-fit li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.8); }
.sd-fit li > span { flex: none; width: 24px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.sd-steps { display: grid; gap: 0; counter-reset: none; }
.sd-steps li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.sd-steps li:first-child { padding-top: 0; }
.sd-steps li:last-child { border-bottom: 0; }
.sd-step-num { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--color-primary-500); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.sd-steps h3 { color: #fff; font-size: 1.25rem; font-weight: 500; margin-bottom: 4px; }
.sd-steps p { color: rgba(255,255,255,.68); }
.sd-others-title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 20px; }
.sd-others { display: grid; gap: 10px; }
@media (min-width: 640px) { .sd-others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sd-others { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sd-others a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 20px 22px; border-radius: 18px; background: var(--color-background-3); font-weight: 500; transition: background .25s, color .25s, transform .25s; }
.sd-others a:hover, .sd-others a:focus-visible { background: var(--color-secondary); color: #fff; transform: translateY(-2px); }
.sd-accent { color: var(--color-primary-300); }

/* Cookie consent banner */
.cc { position: fixed; z-index: 9990; left: 16px; right: 16px; bottom: 16px; max-width: 440px; background: var(--color-secondary); color: #fff; border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
.cc.is-in { opacity: 1; transform: none; }
.cc[hidden] { display: none; }
@media (min-width: 640px) { .cc { left: 24px; bottom: 24px; right: auto; } }
.cc-title { font-weight: 600; font-size: 1rem; margin-bottom: 6px; color: #fff; }
.cc-text { font-size: .875rem; line-height: 1.55; color: rgba(255,255,255,.72); }
.cc-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cc-actions { display: flex; gap: 10px; margin-top: 16px; }
.cc-btn { flex: 1; height: 44px; border-radius: 999px; font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cc-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.cc-btn-ghost:hover { border-color: #fff; }
.cc-btn-solid { background: var(--color-primary-500); color: #fff; border: 1px solid var(--color-primary-500); }
.cc-btn-solid:hover { background: #fff; color: var(--color-secondary); border-color: #fff; }
.cc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Header dropdowns (About us, Services) */
.nav-dd { width: max-content; min-width: 240px; padding: 8px; border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(26, 26, 28, .22); }
.nav-dd-list { display: grid; gap: 2px; }
.nav-dd-list a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 14px; border-radius: 12px; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav-dd-list a:hover, .nav-dd-list a:focus-visible { background: var(--color-background-3); color: var(--color-secondary); }
.nav-dd-list li:last-child a[href$="/services"] { margin-top: 4px; border-top: 1px solid var(--color-stroke-2); border-radius: 0 0 12px 12px; padding-top: 13px; }

/* Resume upload message (careers apply form) */
.resume-msg { font-size: .875rem; line-height: 1.4; margin-top: 4px; min-height: 0; }
.resume-msg:empty { display: none; }
.resume-msg.is-error, .resume-msg:not(.is-ok):not(:empty) { color: #d92d20; }
.resume-msg.is-ok { color: #067647; }

/* ---------- Error pages (404, 403, 500…) ---------- */
.er { position: relative; overflow: hidden; background: var(--color-background-3); padding: clamp(140px, 16vw, 190px) 0 clamp(64px, 8vw, 100px); min-height: 88vh; display: flex; align-items: center; }
.er > .main-container { width: 100%; }
.er-glow { position: absolute; width: 900px; max-width: 130vw; top: -280px; right: -240px; opacity: .55; transform: rotate(200deg); pointer-events: none; }
.er-glow img { width: 100%; height: auto; }
.er-grid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--color-stroke-2) 1px, transparent 1px), linear-gradient(90deg, var(--color-stroke-2) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 75%); }
.er-inner { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.er-sticker { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--color-secondary); color: #fff; font-size: .85rem; font-weight: 500; transform: rotate(-3deg); box-shadow: 0 10px 24px -12px rgba(26,26,28,.5); }
.er-sticker > span { padding: 6px 12px; }
.er-sticker-code { background: var(--color-ns-yellow, #f5e85b); color: var(--color-secondary); border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.er-code { display: flex; justify-content: center; gap: clamp(4px, 1.2vw, 14px); margin: clamp(18px, 3vw, 28px) 0 4px; background: none; border: 0; padding: 0; cursor: pointer; line-height: .82; font-size: clamp(7rem, 24vw, 17rem); font-weight: 600; letter-spacing: -0.06em; color: var(--color-secondary); -webkit-tap-highlight-color: transparent; }
.er-digit { display: inline-block; transition: transform .9s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i) * 110ms); transform-origin: 50% 52%; }
.er-digit-outline { color: transparent; -webkit-text-stroke: clamp(2px, .5vw, 5px) var(--color-primary-500); }
.er-code.is-inverted .er-digit { transform: rotate(180deg); }
@media (hover: hover) { .er-code.is-inverted:hover .er-digit { transform: rotate(0deg); transition-delay: calc(var(--i) * 60ms); } }
.er-code:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: 8px; border-radius: 16px; }
.er-hint { font-size: .8rem; color: var(--color-secondary); opacity: .45; margin-top: clamp(10px, 1.6vw, 18px); margin-bottom: clamp(22px, 3vw, 34px); }
.er-hint-touch { display: none; }
@media (hover: none) { .er-hint-mouse { display: none; } .er-hint-touch { display: inline; } }
.er-title { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; }
.er-text { margin-top: 16px; max-width: 560px; font-size: 1.06rem; }
.er-path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; padding: 2px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--color-stroke-2); color: var(--color-secondary); word-break: break-all; }
.er-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
@media (max-width: 480px) { .er-actions { flex-direction: column; width: 100%; } .er-actions .btn { width: 100%; justify-content: center; } }
.er-contact { margin-top: 22px; font-size: .92rem; opacity: .75; }
.er-contact a { text-decoration: underline; text-underline-offset: 3px; }
.er-links { max-width: 980px; margin: clamp(48px, 7vw, 80px) auto 0; }
.er-links-title { text-align: center; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55; margin-bottom: 14px; }
.er-links ul { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .er-links ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .er-links ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.er-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--color-stroke-2); transition: background .25s, color .25s, transform .25s, border-color .25s; }
.er-links a span { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.er-links a strong { font-weight: 500; }
.er-links a small { font-size: .78rem; opacity: .6; }
.er-links a:hover, .er-links a:focus-visible { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; transform: translateY(-3px); }
.er-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 24px 0; }
.er-bar-logo img { height: 44px; width: auto; }
.er-foot { text-align: center; font-size: .8rem; opacity: .5; padding: 24px 16px 32px; background: var(--color-background-3); }
@media (prefers-reduced-motion: reduce) { .er-digit { transition: none; } }


/* ---------- Home: featured collaborations (swipeable photo deck) ---------- */
.cd-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 1024px) { .cd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cd-title { margin-top: 18px; }
/* All stories share one grid cell, so the box is exactly as tall as the longest story: no gap, no jumping. */
.cd-story { display: grid; margin-top: clamp(24px, 3vw, 36px); }
.cd-slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.cd-slide.is-active { visibility: visible; opacity: 1; animation: cd-in .55s cubic-bezier(.2, .8, .2, 1) both; }
.cd-meta { display: flex; align-items: center; gap: 14px; }
.cd-index { font-size: 3.4rem; line-height: 1; font-weight: 600; letter-spacing: -0.05em; color: var(--color-secondary); }
.cd-index small { font-size: 1rem; font-weight: 500; letter-spacing: 0; opacity: .4; margin-left: 2px; }
.cd-tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--cd-accent, var(--color-ns-yellow)); color: var(--color-secondary); transform: rotate(-3deg); }
.cd-tag.fc-yellow, .cd-card.fc-yellow { --cd-accent: var(--color-ns-yellow); }
.cd-tag.fc-green, .cd-card.fc-green { --cd-accent: var(--color-ns-green); }
.cd-tag.fc-cyan, .cd-card.fc-cyan { --cd-accent: var(--color-ns-cyan); }
.cd-tag.fc-purple, .cd-card.fc-purple { --cd-accent: #c9b5ff; }
.cd-tag.fc-peach, .cd-card.fc-peach { --cd-accent: var(--color-ns-red); }
.cd-name { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; margin: 18px 0 12px; }
.cd-text { max-width: 500px; font-size: 1.05rem; }
.cd-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--color-stroke-2); }
.cd-faces { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.cd-face { width: 48px; height: 48px; border-radius: 999px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #dfe2e8; position: relative; opacity: .65;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, opacity .3s; }
/* Square face crops made by Thumb::face(), so printed names in the photo backgrounds don't show. */
.cd-face img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s; }
.cd-face:hover { opacity: 1; transform: translateY(-3px); }
.cd-face:hover img, .cd-face.is-active img { filter: none; }
.cd-face.is-active { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 3px var(--color-background-3), 0 0 0 5px var(--color-primary-500); }
.cd-face:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: 3px; }
.cd-arrows { display: flex; gap: 10px; }
.cd-arrow { width: 52px; height: 52px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--color-stroke-2); color: var(--color-secondary); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s; }
.cd-arrow:hover, .cd-arrow-main { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.cd-arrow-main:hover { background: var(--color-primary-500); border-color: var(--color-primary-500); }
.cd-arrow:active { transform: scale(.92); }
.cd-arrow:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: 3px; }
.cd-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 500; color: var(--color-secondary); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: color .2s, gap .2s; }
.cd-more:hover { color: var(--color-primary-500); gap: 12px; }

.cd-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(460px, 44vw, 600px); }
.cd-blob { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 42% 58% 61% 39% / 45% 41% 59% 55%; background: var(--color-ns-yellow); opacity: .75; filter: blur(2px); animation: cd-morph 12s ease-in-out infinite; transition: background .6s ease; }
.cd-hint { position: absolute; top: 4%; right: 6%; z-index: 20; font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--color-secondary); color: #fff; transform: rotate(8deg); box-shadow: 0 10px 20px -10px rgba(0,0,0,.4); pointer-events: none; }
.cd-deck { position: relative; width: min(360px, 78vw); aspect-ratio: 3 / 4.05; touch-action: pan-y; user-select: none; }
.cd-card { position: absolute; inset: 0; margin: 0; padding: 12px 12px 0; background: #fff; border-radius: 22px; box-shadow: 0 30px 50px -28px rgba(26,26,28,.45), 0 2px 6px rgba(26,26,28,.06);
  display: flex; flex-direction: column; cursor: grab; will-change: transform;
  transition: transform .6s cubic-bezier(.34, 1.4, .64, 1), opacity .45s ease, box-shadow .4s; }
.cd-card.is-dragging { transition: none; cursor: grabbing; }
.cd-photo { position: relative; flex: 1; border-radius: 14px; overflow: hidden; background: #e9ebf0; }
.cd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cd-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 6px 16px; }
.cd-card figcaption strong { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.cd-card figcaption span { font-size: .75rem; opacity: .55; text-align: right; }
/* Stack positions */
.cd-card[data-pos="0"] { transform: rotate(-2deg); }
.cd-card[data-pos="1"] { transform: translate(26px, 8px) rotate(5deg) scale(.96); }
.cd-card[data-pos="2"] { transform: translate(-28px, 14px) rotate(-8deg) scale(.92); }
.cd-card[data-pos="3"] { transform: translate(6px, 22px) rotate(2deg) scale(.88); opacity: .9; }
.cd-card[data-pos="rest"] { transform: translate(0, 26px) scale(.85); opacity: 0; }
.cd-card:not([data-pos="0"]) { cursor: default; pointer-events: none; }
.cd-card.is-leaving { transform: translate(130%, -8%) rotate(24deg) !important; opacity: 0; transition: transform .45s cubic-bezier(.5, 0, .75, 0), opacity .4s ease .05s; }
.cd-card.is-leaving-left { transform: translate(-130%, -8%) rotate(-24deg) !important; opacity: 0; transition: transform .45s cubic-bezier(.5, 0, .75, 0), opacity .4s ease .05s; }
@keyframes cd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cd-morph { 0%, 100% { border-radius: 42% 58% 61% 39% / 45% 41% 59% 55%; transform: rotate(0); } 50% { border-radius: 58% 42% 38% 62% / 55% 60% 40% 45%; transform: rotate(14deg) scale(1.04); } }

@media (max-width: 1023px) {
  /* Mobile order: heading, then the deck, then the story and controls. */
  .cd-grid { grid-template-columns: 1fr; gap: 0; }
  .cd-info { display: contents; }
  .cd-info > * { order: 3; }
  .cd-info > .badge { order: 0; justify-self: start; }
  .cd-title { order: 1; }
  .cd-stage { order: 2; min-height: 0; padding: 48px 0 16px; }
  .cd-story { min-height: 0; margin-top: 16px; }
}
@media (max-width: 480px) {
  .cd-index { font-size: 2.6rem; }
  .cd-face { width: 40px; height: 40px; }
  .cd-faces { gap: 6px; }
  .cd-hint { right: 2%; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-blob { animation: none; }
  .cd-card, .cd-slide.is-active { transition: none; animation: none; }
}
.cd-link { display: inline-block; margin-top: 14px; font-weight: 500; color: var(--color-primary-500); }
.cd-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Home: How it works (campaign control room) ---------- */
.hw { padding: clamp(40px, 6vw, 80px) 0; }
.hw-panel { position: relative; overflow: hidden; margin: 0 clamp(8px, 1.4vw, 20px); border-radius: 36px; background: var(--color-secondary); color: #fff; padding: clamp(56px, 7vw, 100px) 0 clamp(40px, 5vw, 72px); isolation: isolate; }
.hw-glow { position: absolute; z-index: -1; width: 900px; height: 900px; max-width: 140vw; border-radius: 999px; top: -460px; right: -280px;
  background: radial-gradient(circle, rgba(240,128,240,.45), rgba(134,79,254,.28) 40%, rgba(134,79,254,0) 70%); filter: blur(10px); animation: pl-breathe 9s ease-in-out infinite; }
.hw-grid { position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 10%, transparent 75%); }
.hw-top { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 1024px) { .hw-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hw-badge { display: inline-block; font-size: .85rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.hw-title { color: #fff; font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500; margin: 20px 0 18px; max-width: 680px; }
.hw-title span { background: linear-gradient(90deg, #b79bff, #f39bf0 55%, #7ee8fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw-lead { color: rgba(255,255,255,.68); font-size: 1.08rem; max-width: 520px; }
.hw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.hw-ghost { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; border-bottom: 1.5px solid rgba(255,255,255,.4); padding-bottom: 2px; transition: border-color .2s, gap .2s; }
.hw-ghost:hover { border-color: #fff; gap: 12px; }

/* Dashboard card */
.hw-dash { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; padding: clamp(20px, 2.4vw, 30px); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); transform: rotate(1.2deg); }
.hw-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hw-dash-title { font-weight: 600; font-size: 1.05rem; }
.hw-live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(126, 232, 170, .12); color: #9ff0c0; }
.hw-live i { width: 8px; height: 8px; border-radius: 99px; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: hw-pulse 1.8s ease-out infinite; }
.hw-dash-sub { color: rgba(255,255,255,.55); font-size: .9rem; margin-top: 4px; }
.hw-big { display: flex; align-items: flex-end; gap: 14px; margin: 22px 0 8px; }
.hw-big-num { font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: .9; font-weight: 600; letter-spacing: -0.05em; }
.hw-big-label { color: rgba(255,255,255,.6); font-size: .85rem; line-height: 1.35; padding-bottom: 8px; }
.hw-chart { width: 100%; height: 110px; display: block; margin: 6px 0 16px; overflow: visible; }
.hw-chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.65, 0, .35, 1) .2s; }
.hw-chart-area { opacity: 0; transition: opacity 1s ease 1.2s; }
.hw-chart-dot { opacity: 0; transition: opacity .4s ease 1.9s; }
.hw.is-in .hw-chart-line { stroke-dashoffset: 0; }
.hw.is-in .hw-chart-area, .hw.is-in .hw-chart-dot { opacity: 1; }
.hw.is-in .hw-chart-dot { animation: hw-pulse-dot 2s ease-in-out 2.2s infinite; transform-origin: 400px 8px; }
.hw-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hw-tile { border-radius: 18px; padding: 14px 16px; background: rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hw-tile-accent { background: #fff; color: var(--color-secondary); }
.hw-tile-label { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; opacity: .85; }
.hw-tile-label i { font-style: normal; width: 20px; height: 20px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; background: var(--color-ns-green); color: var(--color-secondary); }
.hw-tile-num { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Steps */
.hw-steps { display: grid; gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 768px) { .hw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hw-step { position: relative; border-radius: 26px; padding: 14px 14px 26px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .3s, border-color .3s; }
.hw-step:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.hw-window { position: relative; border-radius: 18px; background: #eeeeee; height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 22px; }
.hw-window img { height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.hw-step:hover .hw-window img { transform: scale(1.08) rotate(-4deg); }
.hw-window-star img { height: 104px; }
.hw-sticker { position: absolute; top: 22%; left: 16%; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; padding: 4px 14px; border-radius: 999px; background: var(--color-secondary); color: #fff; transform: rotate(-18deg); box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
.hw-step-num { display: block; padding: 0 12px; font-size: .85rem; font-weight: 600; color: #b79bff; letter-spacing: .04em; }
.hw-step h3 { color: #fff; font-size: 1.35rem; line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; padding: 0 12px; margin: 8px 0; }
.hw-step p { color: rgba(255,255,255,.62); padding: 0 12px; font-size: .98rem; }

@keyframes hw-pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } }
@keyframes hw-pulse-dot { 50% { r: 8; } }
@media (max-width: 1023px) { .hw-dash { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hw-glow, .hw-live i, .hw.is-in .hw-chart-dot { animation: none; }
  .hw-chart-line, .hw-chart-area, .hw-chart-dot { transition: none; }
}

/* How it works: light panel + dark dashboard (the next home section is dark, so this one stays light). */
.hw-panel { background: linear-gradient(160deg, #f6f2ff 0%, #fbf5ff 45%, #eef8ff 100%); color: var(--color-secondary); border: 1px solid rgba(134,79,254,.10); }
.hw-glow { background: radial-gradient(circle, rgba(240,128,240,.35), rgba(134,79,254,.18) 40%, rgba(134,79,254,0) 70%); }
.hw-grid { opacity: .6; background-image: linear-gradient(rgba(26,26,28,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(26,26,28,.05) 1px, transparent 1px); }
.hw-badge { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.hw-title { color: var(--color-secondary); }
.hw-title span { background: linear-gradient(90deg, #864ffe, #c03fd9 55%, #1f9fd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw-lead { color: rgba(26,26,28,.65); }
.hw-ghost { color: var(--color-secondary); border-bottom-color: rgba(26,26,28,.35); }
.hw-ghost:hover { border-color: var(--color-secondary); }
.hw-dash { background: radial-gradient(120% 90% at 100% 0%, rgba(134,79,254,.35), rgba(134,79,254,0) 55%), var(--color-secondary); color: #fff; border-color: rgba(255,255,255,.08); box-shadow: 0 40px 80px -36px rgba(46, 20, 110, .55); }
.hw-step { background: #fff; border-color: var(--color-stroke-2); box-shadow: 0 20px 40px -32px rgba(26,26,28,.25); }
.hw-step:hover { background: #fff; border-color: rgba(134,79,254,.35); box-shadow: 0 30px 50px -30px rgba(70, 30, 160, .35); }
.hw-step h3 { color: var(--color-secondary); }
.hw-step p { color: rgba(26,26,28,.62); }
.hw-step-num { color: var(--color-primary-500); }
/* How it works spacing: white like its neighbours; the next section's own top padding sets the gap below. */
.hw { padding: clamp(32px, 4vw, 56px) 0 0; background: #fff; }
.hw-panel { padding-bottom: clamp(28px, 3.6vw, 48px); }

/* ---------- Home: About ---------- */
.iv { padding: clamp(40px, 7vw, 100px) 0 0; }
.iv-panel { position: relative; overflow: hidden; border-radius: clamp(22px, 3vw, 36px); background: var(--color-secondary); isolation: isolate; cursor: default; }
.iv-glow { position: absolute; z-index: 0; width: 760px; max-width: 120vw; top: -340px; right: -260px; opacity: .9; transform: rotate(68deg); pointer-events: none; }
.iv-glow img { width: 100%; height: auto; }
.iv-layer { position: relative; z-index: 1; padding: clamp(48px, 6vw, 88px) clamp(22px, 4vw, 64px); }
.iv-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) { .iv-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.iv-badge { display: inline-block; font-size: .85rem; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.iv-title { color: #fff; font-size: clamp(2.3rem, 4.8vw, 4.2rem); line-height: 1.03; letter-spacing: -0.04em; font-weight: 500; margin: 20px 0 18px; }
.iv-title span { color: var(--color-primary-500); display: inline-block; }
.iv-text { color: rgba(255,255,255,.62); font-size: 1.08rem; max-width: 500px; }
.iv-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 14px 22px; border-radius: 999px; background: #fff; color: var(--color-secondary); font-weight: 500; transition: background .25s, color .25s, gap .25s; }
.iv-btn:hover { background: var(--color-primary-500); color: #fff; gap: 14px; }
.iv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.iv-fact { transition: background .3s, border-color .3s, translate .4s cubic-bezier(.2,.8,.2,1); border-radius: 22px; padding: clamp(18px, 2vw, 26px); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.iv-fact:nth-child(2) { transform: translateY(22px); }
.iv-fact:nth-child(4) { transform: translateY(22px); }
.iv-fact-big { font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; font-weight: 600; letter-spacing: -0.05em; color: #fff; }
.iv-fact-big.is-icon { font-size: 1.6rem; width: 46px; height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary-500); color: #fff; letter-spacing: 0; }
.iv-fact p { color: rgba(255,255,255,.6); font-size: .95rem; line-height: 1.45; }
.iv-fact strong { color: #fff; font-weight: 500; }


@media (max-width: 1023px) {
  .iv-copy { text-align: left; }
  .iv-fact:nth-child(2), .iv-fact:nth-child(4) { transform: none; }
}
@media (max-width: 480px) { .iv-fact { min-height: 140px; } .iv-facts { gap: 10px; } }
.iv-fact:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); translate: 0 -4px; }

/* Footer bottom line: copyright + "Made with love in Kerala" */
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; }
@media (min-width: 768px) { .ft-bottom { justify-content: space-between; } }
.ft-love { display: inline-flex; align-items: center; gap: 7px; font-size: 1rem; color: rgba(255,255,255,.7); }
.ft-heart { display: inline-block; color: #ff4d6d; font-size: 1.15em; line-height: 1; animation: ft-beat 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes ft-beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(.95); } 45% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ft-heart { animation: none; } }

/* ---------- Careers page ---------- */
.cr-hero { position: relative; overflow: hidden; background: var(--color-background-3); padding: clamp(130px, 14vw, 170px) 0 clamp(56px, 7vw, 96px); }
.cr-hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .cr-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.cr-hiring { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; padding: 8px 14px 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--color-stroke-2); }
.cr-hiring i { width: 9px; height: 9px; border-radius: 99px; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: hw-pulse 1.8s ease-out infinite; }
.cr-title { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; margin: 20px 0 18px; }
.cr-title span { color: var(--color-primary-500); display: inline-block; }
.cr-intro { max-width: 560px; font-size: 1.08rem; }

.cr-roles { padding: clamp(56px, 7vw, 100px) 0; }
.cr-roles-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.cr-count { font-size: .4em; vertical-align: super; color: rgba(26,26,28,.4); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.cr-list { display: grid; gap: 12px; }
.cr-job { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 36px); padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px); border-radius: 24px; background: var(--color-background-3); border: 1px solid var(--color-stroke-2); color: var(--color-secondary); transition: background .35s, color .35s, border-color .35s, transform .35s; }
.cr-job:hover, .cr-job:focus-visible { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; transform: translateY(-2px); }
.cr-job:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: 3px; }
.cr-job-num { font-size: .9rem; font-weight: 600; color: var(--color-primary-500); }
.cr-job-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cr-job-dept { align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--color-ns-green); color: var(--color-secondary); }
.cr-job-title { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.cr-job-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; opacity: .65; }
.cr-job-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.cr-job-cta { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; white-space: nowrap; }
.cr-job-arrow { width: 52px; height: 52px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-secondary); color: #fff; transition: background .35s, color .35s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.cr-job:hover .cr-job-arrow { background: var(--color-primary-500); transform: rotate(45deg); }
@media (max-width: 767px) {
  .cr-job { grid-template-columns: minmax(0, 1fr) auto; }
  .cr-job-num { display: none; }
  .cr-job-cta > span:first-child { display: none; }
  .cr-job-arrow { width: 44px; height: 44px; }
}
.cr-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--color-background-3); border: 1px dashed var(--color-stroke-2); }
.cr-empty > div { flex: 1 1 320px; }
.cr-empty h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 6px; }
.cr-empty p { opacity: .7; }
.cr-empty-icon { width: 56px; height: 56px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-ns-yellow); font-size: 1.4rem; }

.cr-values { padding: 0 0 clamp(56px, 7vw, 100px); }
.cr-values-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.cr-values-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cr-value { border-radius: 24px; padding: 26px 24px 28px; background: var(--cr-bg); min-height: 230px; display: flex; flex-direction: column; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.cr-value:nth-child(even) { transform: translateY(18px); }
.cr-value:hover { transform: translateY(-4px) rotate(-1deg); }
.cr-value-num { font-size: .85rem; font-weight: 600; opacity: .55; margin-bottom: auto; padding-bottom: 36px; }
.cr-value h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 8px; }
.cr-value p { color: rgba(26,26,28,.72); font-size: .97rem; }
.cr-yellow { --cr-bg: var(--color-ns-yellow); }
.cr-green { --cr-bg: var(--color-ns-green); }
.cr-cyan { --cr-bg: var(--color-ns-cyan); }
.cr-peach { --cr-bg: var(--color-ns-red); }
@media (max-width: 1023px) { .cr-value:nth-child(even) { transform: none; } }

.cr-cta-wrap { padding: clamp(20px, 3vw, 40px) 0 clamp(56px, 7vw, 100px); }
.cr-cta { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(22px, 3vw, 36px); background: var(--color-secondary); color: #fff; padding: clamp(40px, 6vw, 80px) clamp(22px, 4vw, 64px); display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .cr-cta { grid-template-columns: minmax(0, 1fr) auto; } }
.cr-cta-glow { position: absolute; z-index: -1; width: 760px; max-width: 120vw; top: -360px; right: -260px; transform: rotate(68deg); pointer-events: none; }
.cr-cta-glow img { width: 100%; height: auto; }
.cr-cta-badge { display: inline-block; font-size: .85rem; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.cr-cta-title { color: #fff; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 500; margin: 18px 0 14px; }
.cr-cta-title span { color: var(--color-primary-500); display: inline-block; }
.cr-cta-copy p { color: rgba(255,255,255,.65); max-width: 560px; }
.cr-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cr-cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; background: #fff; color: var(--color-secondary); font-weight: 500; transition: background .25s, color .25s, gap .25s; }
.cr-cta-btn:hover { background: var(--color-primary-500); color: #fff; gap: 14px; }
.cr-cta-link { color: #fff; border-bottom: 1.5px solid rgba(255,255,255,.4); padding-bottom: 2px; font-weight: 500; transition: border-color .2s; }
.cr-cta-link:hover { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .cr-hiring i { animation: none; } }
/* Careers fixes: hiring pill on its own line; tighter mobile cards and collage */
.cr-hiring { display: flex; width: fit-content; }
@media (max-width: 767px) {
  .cr-value { min-height: 0; padding: 20px 20px 22px; }
  .cr-value-num { padding-bottom: 18px; }
  .cr-value h3 { font-size: 1.35rem; }
}

/* Careers hero: minimal, centred, no photos */
.cr-hero { padding: clamp(130px, 13vw, 160px) 0 clamp(48px, 6vw, 80px); text-align: center; }
.cr-hero-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cr-hero .hero-badge { margin-bottom: 18px; }
.cr-hiring { margin: 0 auto; }
.cr-title { margin: 22px 0 16px; }
.cr-intro { margin: 0 auto; }
.cr-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
@media (max-width: 480px) { .cr-hero-actions { flex-direction: column; width: 100%; } .cr-hero-actions .btn { width: 100%; } }

/* About hero: simple, centred, no photos */
.ab-hero-simple { max-width: 860px; margin: 0 auto; text-align: center; }
.ab-hero-simple .hero-badge { margin-bottom: 18px; }
.ab-since { display: flex; width: fit-content; margin: 0 auto; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--color-stroke-2); font-size: .9rem; font-weight: 500; }
.ab-since span { padding: 5px 11px; border-radius: 999px; background: var(--color-ns-yellow); font-weight: 600; }
.ab-hero-simple .ab-hero-title { margin-top: 22px; }
.ab-hero-intro { max-width: 600px; margin: 22px auto 0; font-size: 1.08rem; }
.ab-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
@media (max-width: 480px) { .ab-hero-actions { flex-direction: column; } .ab-hero-actions .btn { width: 100%; } }
.ab-hero .svc-stats { margin-top: clamp(40px, 6vw, 64px); }

/* Team cut-out photos (transparent PNGs): soft card background, person standing on the bottom edge. */
.ab-member { --tm-accent: var(--color-ns-yellow); }
.ab-tag-yellow-card { --tm-accent: var(--color-ns-yellow); }
.ab-tag-green-card { --tm-accent: var(--color-ns-green); }
.ab-tag-cyan-card { --tm-accent: var(--color-ns-cyan); }
.ab-tag-red-card { --tm-accent: var(--color-ns-red); }
.ab-tag-purple-card { --tm-accent: #c9b5ff; }
.ab-member-photo { position: relative; isolation: isolate; background: radial-gradient(120% 80% at 50% 30%, #ffffff 0%, #e9eaef 70%); }
.ab-member-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tm-accent); opacity: 0; transition: opacity .5s ease; }
.ab-member:hover .ab-member-photo::before { opacity: .35; }
.ab-member-photo img { object-fit: cover; object-position: bottom center; filter: none; transform-origin: bottom center; }
.ab-member:hover .ab-member-photo img { filter: none; transform: scale(1.05); }

/* Work culture page: studio photo mosaic (one tall + 2x2) */
.cu-mosaic { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, clamp(170px, 17vw, 250px)); gap: 12px; }
.cu-shot { margin: 0; border-radius: 20px; overflow: hidden; background: #2a1d3a; }
.cu-shot-1 { grid-row: 1 / 3; }
.cu-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.cu-shot:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .cu-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px repeat(2, 170px); } .cu-shot-1 { grid-row: auto; grid-column: 1 / 3; } }

/* ---------- Press kit ---------- */
.pk-hero { position: relative; overflow: hidden; background: var(--color-background-3); padding: clamp(130px, 13vw, 160px) 0 clamp(44px, 5vw, 64px); text-align: center; }
.pk-hero-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pk-title { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.05em; font-weight: 500; margin: 18px 0 16px; }
.pk-title span { color: var(--color-primary-500); }
.pk-intro { max-width: 600px; font-size: 1.08rem; }
.pk-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.pk-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pk-jump a { font-size: .85rem; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--color-stroke-2); transition: background .2s, color .2s; }
.pk-jump a:hover { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
@media (max-width: 480px) { .pk-hero-actions { flex-direction: column; width: 100%; } .pk-hero-actions .btn { width: 100%; } }

.pk-body { padding-top: clamp(24px, 4vw, 48px); }
.pk-section { display: grid; gap: 20px 56px; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--color-stroke-2); scroll-margin-top: 110px; }
@media (min-width: 1024px) { .pk-section { grid-template-columns: 300px minmax(0, 1fr); } .pk-side { position: sticky; top: 120px; align-self: start; } }
.pk-num { display: block; font-size: .85rem; font-weight: 600; color: var(--color-primary-500); margin-bottom: 8px; }
.pk-side h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
.pk-side p { margin-top: 10px; font-size: .95rem; opacity: .7; max-width: 300px; }
.pk-copies { display: grid; gap: 14px; }
.pk-copy { border-radius: 20px; background: var(--color-background-3); padding: 20px 22px 22px; }
.pk-copy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.pk-copy-btn { font-size: .8rem; letter-spacing: 0; text-transform: none; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--color-stroke-2); cursor: pointer; transition: background .2s, color .2s; }
.pk-copy-btn:hover { background: var(--color-secondary); color: #fff; }
.pk-copy p { font-size: 1.02rem; line-height: 1.65; color: var(--color-secondary); }
.pk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.pk-facts > div { border-radius: 18px; padding: 18px 20px; background: var(--color-background-3); }
.pk-facts dt { font-size: .8rem; opacity: .6; }
.pk-facts dd { font-size: 1.1rem; font-weight: 500; margin-top: 4px; }
.pk-partners { margin-top: 16px; font-size: .97rem; }
.pk-logos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pk-logo { margin: 0; border-radius: 20px; border: 1px solid var(--color-stroke-2); overflow: hidden; }
.pk-logo-tile { height: 170px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.pk-logo-tile img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pk-light { background: var(--color-background-3); }
.pk-dark { background: var(--color-secondary); }
.pk-logo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.pk-logo figcaption span { display: flex; flex-direction: column; }
.pk-logo small { font-size: .78rem; opacity: .6; }
.pk-dl { flex: none; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-secondary); color: #fff; transition: background .2s; }
.pk-dl:hover { background: var(--color-primary-500); }
.pk-colors { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pk-swatch { width: 100%; text-align: left; border-radius: 18px; border: 1px solid var(--color-stroke-2); background: #fff; padding: 8px 8px 14px; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.pk-swatch:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(26,26,28,.35); }
.pk-chip { display: block; height: 80px; border-radius: 12px; border: 1px solid rgba(0,0,0,.05); margin-bottom: 10px; }
.pk-sw-text { display: flex; flex-direction: column; padding: 0 6px; }
.pk-sw-text code { font-size: .85rem; opacity: .75; }
.pk-sw-text small { font-size: .75rem; opacity: .55; }
.pk-type { display: flex; align-items: center; gap: 22px; margin-top: 16px; border-radius: 20px; background: var(--color-background-3); padding: 20px 24px; }
.pk-type-sample { font-size: 4rem; line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.pk-type p { font-size: .92rem; opacity: .7; margin: 2px 0 6px; }
.pk-type a { color: var(--color-primary-500); font-weight: 500; font-size: .92rem; }
.pk-photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pk-photo { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 3; background: #2a1d3a; }
.pk-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pk-photo:hover img { transform: scale(1.05); }
.pk-photo-dl { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--color-secondary); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.pk-photo:hover .pk-photo-dl, .pk-photo:focus-visible .pk-photo-dl { opacity: 1; transform: none; }
@media (hover: none) { .pk-photo-dl { opacity: 1; transform: none; } }
.pk-contact-wrap { padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 100px); }
.pk-contact { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(22px, 3vw, 36px); background: var(--color-secondary); color: #fff; padding: clamp(40px, 6vw, 72px) clamp(22px, 4vw, 64px); display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .pk-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); } }
.pk-contact-text { color: rgba(255,255,255,.65); max-width: 520px; }
.pk-contact-list { display: grid; gap: 10px; }
.pk-contact-list > a { display: flex; flex-direction: column; padding: 16px 20px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 500; transition: background .2s; word-break: break-all; }
.pk-contact-list > a:hover { background: rgba(255,255,255,.14); }
.pk-contact-list small { font-size: .75rem; opacity: .55; font-weight: 400; }
.pk-social { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 6px 4px 0; }
.pk-social a { color: rgba(255,255,255,.8); font-size: .9rem; }
.pk-social a:hover { color: #fff; }
.pk-toast { position: fixed; left: 50%; bottom: 28px; z-index: 9995; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--color-secondary); color: #fff; font-size: .9rem; transition: opacity .25s, transform .25s; }
.pk-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.pk-dl-group { display: inline-flex; gap: 6px; flex: none; }
.pk-dl-btn { font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: 8px 11px; border-radius: 999px; background: var(--color-secondary); color: #fff; transition: background .2s; }
.pk-dl-btn:hover { background: var(--color-primary-500); }
.pk-dl-svg { background: var(--color-primary-500); }
.pk-dl-svg:hover { background: var(--color-secondary); }


/* Trademark notice: one small, quiet line */
.tm-note { margin: 14px auto 0; text-align: center; font-size: 12px; line-height: 1.4; color: rgba(26,26,28,.4); }
.tm-note a, .tm-note-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tm-note a:hover { color: var(--color-secondary); }
#pf-grid ~ .tm-note { margin-top: 32px; }
.tm-note-footer { margin: 12px auto 0; text-align: center; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.35); }
.tm-note-footer a:hover { color: #fff; }

/* Home blog: three cards with full 16:9 covers (banners are never cropped) */
.hb-cards { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 768px) { .hb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hb-card { display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--color-stroke-2); color: var(--color-secondary); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .3s; }
.hb-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -32px rgba(26,26,28,.35); border-color: transparent; }
.hb-card:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: 3px; }
.hb-card-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1a1c; }
.hb-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.hb-card:hover .hb-card-media img { transform: scale(1.04); }
.hb-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.hb-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: rgba(26,26,28,.55); }
.hb-card-cat { padding: 4px 10px; border-radius: 999px; background: var(--color-background-3); color: var(--color-secondary); font-weight: 500; }
.hb-card-title { font-size: 1.3rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; margin: 12px 0 8px; }
.hb-card-excerpt { font-size: .95rem; line-height: 1.55; color: rgba(26,26,28,.62); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-card-read { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-weight: 500; font-size: .95rem; transition: gap .25s, color .25s; }
.hb-card:hover .hb-card-read { gap: 12px; color: var(--color-primary-500); }

/* ---------- Accessibility & Lighthouse fixes ---------- */
/* Body text contrast: theme grey (#1a1a1c at 60%) was 4.41:1 on the light background; 68% passes 4.5:1.
   Kept inside the theme's own layers so it never overrides coloured/white text classes. */
@layer base { p { color: color-mix(in oklab, var(--color-secondary) 68%, transparent); } }
@layer utilities { .text-secondary\/60 { color: color-mix(in oklab, var(--color-secondary) 68%, transparent); } }
.tm-note { color: rgba(26, 26, 28, .72); }
.tm-note-footer { color: rgba(255, 255, 255, .62); }
.cd-index small { opacity: 1; color: rgba(26, 26, 28, .62); }
.cd-text { color: rgba(26, 26, 28, .72); }
/* Process step titles (now h3 for a correct heading order) keep their h5 size */
.hm-step-title { font-size: var(--text-heading-5); line-height: var(--text-heading-5--line-height); }
.hm-step-num { display: inline-block; font-weight: var(--font-weight-normal, 400); }
/* Home hero glow drawn in CSS (no image), so the headline, not a decorative picture, is the Largest Contentful Paint */
.hm-hero-glow-css { width: 900px; height: 900px; max-width: 140vw; max-height: 140vw; border-radius: 50%; top: -420px; left: -360px; opacity: .55; transform: none;
  background: radial-gradient(circle at 55% 55%, rgba(255, 168, 120, .9) 0%, rgba(240, 128, 240, .75) 30%, rgba(134, 79, 254, .35) 55%, rgba(134, 79, 254, 0) 72%); filter: blur(40px); }
.hm-avt-count { color: #1a1a1c !important; }
.pk-types { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 768px) { .pk-types { grid-template-columns: 1fr 1fr; } }
.pk-types .pk-type { margin-top: 0; align-items: flex-start; }
.pk-type-role { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary-500); margin-bottom: 2px; }
