/*
 * DavinSane design system
 * Colors are stored as RGB channels so Tailwind opacity modifiers work
 * (see assets/theme.js). Use rgb(var(--token)) in plain CSS.
 * To introduce color later, change --accent-1 / --accent-2 / --accent-3 only.
 */
:root {
  --c-bg:         248 246 243;  /* #F8F6F3 page background */
  --c-surface:    255 255 255;  /* #FFFFFF cards */
  --c-subtle:     241 242 244;  /* #F1F2F4 quiet fills */
  --c-panel-from: 237 238 241;  /* #EDEEF1 hero panel start */
  --c-panel-to:   201 205 210;  /* #C9CDD2 hero panel end */
  --c-title:      18 18 24;     /* #121218 headings */
  --c-body:       68 69 76;     /* #44454C paragraphs */
  --c-secondary:  97 100 107;   /* #61646B secondary text */
  --c-tertiary:   148 151 158;  /* #94979E tertiary text */
  --c-border:     224 226 230;  /* #E0E2E6 borders */
  --c-ink:        27 27 33;     /* #1B1B21 primary button */
  --c-on-ink:     255 255 255;
  --c-texture:    221 214 204;  /* #DDD6CC diagonal lines on the page background */

  /* Reserved accent slots, neutral for now */
  --accent-1:     27 27 33;     /* highlights, links, active states */
  --accent-2:     97 100 107;   /* secondary emphasis (pain points, "before") */
  --accent-3:     201 205 210;  /* decorative fills */

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Instrument Sans', 'Inter', system-ui, -apple-system, sans-serif;

  --radius-card: 24px;
  --radius-img:  20px;
  --radius-btn:  12px;
  --shadow-soft: 0 1px 2px rgb(18 18 24 / 0.04), 0 8px 24px rgb(18 18 24 / 0.04);
  --container:   1200px;
}

html { background: rgb(var(--c-bg)); scroll-behavior: smooth; }
body {
  background: rgb(var(--c-bg));
  color: rgb(var(--c-body));
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgb(var(--c-ink)); color: rgb(var(--c-on-ink)); }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ── Layout ── */
.ds-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .ds-container { padding-inline: 40px; } }
.ds-section { padding-block: 96px; }
@media (min-width: 1024px) { .ds-section { padding-block: 128px; } }

/* ── Type ── */
.ds-h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 40px; line-height: 44px; letter-spacing: -0.8px;
  color: rgb(var(--c-title)); text-wrap: balance;
}
@media (min-width: 768px) { .ds-h1 { font-size: 64px; line-height: 64px; letter-spacing: -1.28px; } }
.ds-h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 28px; line-height: 36px; letter-spacing: -0.56px;
  color: rgb(var(--c-title)); text-wrap: balance;
}
@media (min-width: 768px) { .ds-h2 { font-size: 36px; line-height: 48px; letter-spacing: -0.72px; } }
.ds-h3 {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 22px; line-height: 30px; letter-spacing: -0.44px;
  color: rgb(var(--c-title));
}
@media (min-width: 768px) { .ds-h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.48px; } }
.ds-p { font-family: var(--font-sans); font-weight: 400; font-size: 18px; line-height: 28px; letter-spacing: -0.36px; color: rgb(var(--c-body)); }
.ds-p--secondary { color: rgb(var(--c-secondary)); }
.ds-num { font-family: var(--font-serif); font-weight: 500; color: rgb(var(--c-title)); letter-spacing: -0.02em; }

/* ── Eyebrow / pills ── */
.ds-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-border));
  font-family: var(--font-sans); font-weight: 500; font-size: 13px; line-height: 16px;
  letter-spacing: 0; text-transform: none; color: rgb(var(--c-secondary));
  box-shadow: 0 1px 2px rgb(18 18 24 / 0.04);
}
.ds-dot { width: 8px; height: 8px; border-radius: 999px; background: rgb(var(--accent-1)); position: relative; flex-shrink: 0; }
.ds-dot--live::after {
  content: ''; position: absolute; inset: -3px; border-radius: inherit;
  border: 1px solid rgb(var(--accent-1) / 0.35); animation: ds-pulse 2s ease-out infinite;
}
@keyframes ds-pulse { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.ds-tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-border));
  font-family: var(--font-sans); font-weight: 500; font-size: 13px; line-height: 18px;
  color: rgb(var(--c-secondary));
}

/* ── Buttons ── */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  background: rgb(var(--c-ink)); color: rgb(var(--c-on-ink));
  font-family: var(--font-sans); font-weight: 500; font-size: 15px; line-height: 20px; letter-spacing: -0.15px;
  border: 1px solid rgb(var(--c-ink));
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.ds-btn:hover { background: rgb(var(--c-ink) / 0.88); box-shadow: 0 6px 20px rgb(18 18 24 / 0.16); }
.ds-btn:active { transform: translateY(1px); }
.ds-btn:focus-visible, .ds-link:focus-visible { outline: 2px solid rgb(var(--accent-1)); outline-offset: 3px; }
.ds-btn .material-symbols-outlined { font-size: 18px; transition: transform .2s ease; }
.ds-btn:hover .material-symbols-outlined { transform: translate(2px, -2px); }
.ds-btn--ghost { background: rgb(var(--c-surface)); color: rgb(var(--c-title)); border-color: rgb(var(--c-border)); }
.ds-btn--ghost:hover { background: rgb(var(--c-surface)); border-color: rgb(var(--c-tertiary)); box-shadow: var(--shadow-soft); }
.ds-btn--sm { padding: 10px 16px; font-size: 14px; }

/* ── Cards ── */
.ds-card {
  background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-border));
  border-radius: var(--radius-card);
}
.ds-card--hover { transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease; }
.ds-card--hover:hover { box-shadow: var(--shadow-soft); border-color: rgb(var(--c-tertiary) / 0.6); }

/* ── Project cards (.pc): photo on top fading into the body ── */
.pc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #E0E2E6; border-radius: 28px; overflow: hidden; isolation: isolate;
      box-shadow: 0 1px 2px rgb(18 18 24 / 0.04), 0 10px 30px rgb(18 18 24 / 0.05); transition: box-shadow .35s ease, transform .35s ease; }
.pc:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(18 18 24 / 0.05), 0 22px 48px rgb(18 18 24 / 0.10); }
.pc__media { position: relative; height: 240px; overflow: hidden; }
.pc--lg .pc__media { height: 300px; }
.pc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pc:hover .pc__media img { transform: scale(1.05); }
.pc__media::after { content: ''; position: absolute; inset: 0; pointer-events: none;
      background: linear-gradient(to bottom, rgb(255 255 255 / 0) 45%, rgb(255 255 255 / 0.75) 78%, #fff 100%); }
.pc__save { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
      background: rgb(255 255 255 / 0.92); color: #121218; box-shadow: 0 2px 8px rgb(18 18 24 / 0.12); backdrop-filter: blur(6px); transition: transform .3s ease, background-color .3s ease, color .3s ease; }
.pc__save .material-symbols-outlined { font-size: 20px; }
.pc:hover .pc__save { transform: translate(2px, -2px); background: #1B1B21; color: #fff; }
.pc__body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; margin-top: -64px; padding: 0 24px 24px; }
.pc__title { font-family: var(--font-sans); font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; color: #121218; }
.pc__sub { margin-top: 2px; font-size: 14px; line-height: 20px; color: #44454C; }
.pc__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; line-height: 18px; color: #94979E; }
.pc__meta span { display: inline-flex; align-items: center; gap: 4px; }
.pc__meta .material-symbols-outlined { font-size: 15px; }
.pc__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 24px; }
.pc__stats { display: flex; align-items: stretch; }
.pc__stat { display: flex; flex-direction: column; padding: 0 14px; border-left: 1px solid #E0E2E6; }
.pc__stat:first-child { padding-left: 0; border-left: 0; }
.pc__stat b { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; line-height: 20px; color: #121218; white-space: nowrap; }
.pc__stat b .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1; }
.pc__stat small { font-size: 12px; line-height: 16px; color: #94979E; white-space: nowrap; }
.pc__cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 999px; background: #1B1B21; color: #fff;
      font-weight: 500; font-size: 14px; line-height: 18px; white-space: nowrap; transition: background-color .3s ease, box-shadow .3s ease; }
.pc:hover .pc__cta { box-shadow: 0 6px 18px rgb(18 18 24 / 0.22); }
.pc:focus-visible { outline: 2px solid #1B1B21; outline-offset: 3px; }
/* Grid of case cards on company pages */
.pc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 768px) { .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.pc-grid > * { display: flex; }
.pc-grid .pc { width: 100%; }
.pc-grid .pc__media { height: 260px; }
@media (min-width: 768px) { .pc-grid .pc__media { height: 320px; } }
/* Screenshots are busy: start the fade earlier so the title always sits on near-white */
.pc-grid .pc__media::after { background: linear-gradient(to bottom, rgb(255 255 255 / 0) 30%, rgb(255 255 255 / 0.88) 68%, #fff 84%); }
.pc-grid .pc__title { font-size: 22px; line-height: 28px; }
.pc__media--empty { display: flex; align-items: center; justify-content: center; color: #94979E;
  background: radial-gradient(120% 90% at 20% 0%, rgb(120 140 255 / 0.16), transparent 60%), #F4F4F6; }
.pc__media--empty .material-symbols-outlined { font-size: 44px; margin-top: -40px; }
/* Not yet published: no hover lift, muted photo, pill instead of CTA */
.pc--soon { cursor: default; }
.pc--soon:hover { transform: none; box-shadow: 0 1px 2px rgb(18 18 24 / 0.04), 0 10px 30px rgb(18 18 24 / 0.05); }
.pc--soon .pc__media img { filter: grayscale(1); opacity: .55; }
.pc--soon:hover .pc__media img { transform: none; }
.pc__pill { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1px dashed #C9CBD1; color: #6B6E76;
  font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* ── Hero panel ── */
.ds-panel {
  background: linear-gradient(160deg, rgb(var(--c-panel-from)) 0%, rgb(var(--c-panel-to)) 100%);
  border-radius: 28px;
}

/* ── Site nav: loose items over the page, no capsule ── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 248, 0.8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-nav__bar {
  max-width: 1280px; margin-inline: auto; padding: 0 16px;
  height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
@media (min-width: 768px) { .site-nav__bar { height: 72px; padding: 0 24px; } }
.site-nav__brand { justify-self: start; font-family: var(--font-serif); font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: -0.4px; color: #121218; }
.site-nav__links { display: none; align-items: center; gap: 32px; }
@media (min-width: 768px) { .site-nav__links { display: flex; } }
.site-nav__links a {
  font-size: 15px; line-height: 22px; font-weight: 500; letter-spacing: -0.15px;
  color: #61646B; text-decoration: none;
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: color .2s ease;
}
.site-nav__links a:hover { color: #121218; }
.site-nav__links a[aria-current="page"] { color: #121218; text-decoration: underline; }
.site-nav__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 4px; }
.site-nav__cta { display: none; }
@media (min-width: 768px) {
  .site-nav__cta {
    display: inline-flex; border-radius: 12px;
    box-shadow: 0 1px 2px rgb(18 18 24 / 0.08), 0 6px 16px rgb(18 18 24 / 0.12);
  }
}
.site-nav__toggle {
  width: 44px; height: 44px; margin-right: -10px;
  display: flex; align-items: center; justify-content: center;
  color: #121218; background: transparent;
}
@media (min-width: 768px) { .site-nav__toggle { display: none; } }
.site-nav__menu { padding: 4px 16px 20px; }
.site-nav__menu a:not(.ds-btn) {
  display: block; padding: 14px 0;
  font-size: 17px; font-weight: 500; color: #61646B;
  border-bottom: 1px solid rgb(var(--c-border));
}
.site-nav__menu a[aria-current="page"] { color: #121218; }
.site-nav__menu a:not(.ds-btn):hover { color: #121218; }
.site-nav__menu .ds-btn { width: 100%; margin-top: 16px; border-radius: 12px; }
@media (min-width: 768px) { .site-nav__menu { display: none ; } }

/* ── Logo marquee ── */
.ds-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ds-marquee__track { display: flex; width: max-content; animation: ds-marquee 32s linear infinite; }
.ds-marquee:hover .ds-marquee__track { animation-play-state: paused; }
.ds-marquee__item {
  display: flex; align-items: center; gap: 12px; padding: 0 36px;
  font-family: var(--font-serif); font-weight: 500; font-size: 26px; letter-spacing: -0.5px;
  color: rgb(var(--c-title)); white-space: nowrap;
}
.ds-marquee__item img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-border)); padding: 4px; filter: grayscale(1); opacity: .85; }
@keyframes ds-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ds-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ds-marquee__track [aria-hidden="true"] { display: none; }
  .ds-dot--live::after { animation: none; }
}

/* ── Case study metadata row ── */
.meta-cards > div {
  background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-border));
  border-radius: var(--radius-img); padding: 18px 20px;
}

/* ── Footer (markup rendered by assets/site-footer.js) ── */
.site-footer {
  margin-top: 96px; background: #000; color: #A1A1AA;
  font-family: var(--font-sans); font-size: 15px;
}
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 56px 20px 32px; }
@media (min-width: 768px) { .site-footer__inner { padding: 64px 40px 36px; } }
.site-footer__top { display: grid; gap: 40px; }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
.site-footer__brand { display: flex; align-items: flex-start; gap: 16px; }
.site-footer__avatar { width: 56px; height: 56px; flex: none; border-radius: 999px; object-fit: cover; background: #27272A; }
.site-footer__name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: #fff; margin-top: 2px; }
.site-footer__tagline { max-width: 300px; margin-top: 10px; font-size: 14px; line-height: 1.65; color: #A1A1AA; }
.site-footer__socials { display: flex; gap: 14px; margin-top: 20px; }
.site-footer__socials a { color: #A1A1AA; transition: color .2s ease; }
.site-footer__socials a:hover { color: #fff; }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer__heading { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.site-footer__col a { color: #A1A1AA; transition: color .2s ease; }
.site-footer__col a:hover { color: #fff; }
.site-footer__mail { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__bottom {
  display: flex; flex-direction: column; gap: 16px; margin-top: 64px; padding-top: 28px;
  border-top: 1px solid #1F1F23; font-size: 14px; color: #71717A;
}
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 80px; } }
.site-footer__locale { display: inline-flex; align-items: center; gap: 8px; color: #E4E4E7; font-weight: 500; transition: color .2s ease; }
.site-footer__locale svg { color: #52525B; }
.site-footer__locale:hover { color: #fff; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* ── Navbar language toggle ── */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px;
  border-radius: 10px; background: transparent;
  font-size: 15px; line-height: 22px; font-weight: 500; letter-spacing: -0.15px; color: #61646B;
  transition: color .2s ease, background-color .2s ease;
}
.lang-toggle:hover { color: #121218; background: rgb(18 18 24 / 0.05); }
.lang-toggle:focus-visible { outline: 2px solid #121218; outline-offset: 2px; }
.lang-toggle .material-symbols-outlined { font-size: 18px; }
@media (min-width: 768px) { .lang-toggle { margin-right: 8px; } }

/* ── Button variants ── */
.ds-btn--square { border-radius: var(--radius-btn); box-shadow: 0 1px 2px rgb(18 18 24 / 0.08), 0 6px 16px rgb(18 18 24 / 0.10); }
.ds-btn--outline { background: transparent; color: rgb(var(--c-title)); border-color: rgb(var(--c-border)); box-shadow: none; }
.ds-btn--outline:hover { background: rgb(var(--c-surface) / 0.6); border-color: rgb(var(--c-tertiary)); box-shadow: none; }

/* ── Home hero ── */
:root { --hero-photo-filter: grayscale(1) contrast(1.05); }

.page-textured {
  background-color: rgb(var(--c-bg));
  background-image: repeating-linear-gradient(135deg, rgb(var(--c-texture) / 0.22) 0 1px, transparent 1px 4px);
}

/* Hero width */
.hero-wrap { width: calc(100% - 32px); max-width: 1280px; margin-inline: auto; }
@media (min-width: 768px) { .hero-wrap { width: calc(100% - 48px); } }
.hero-wrap { margin-top: 56px; }
@media (min-width: 768px) { .hero-wrap { margin-top: 96px; } }

.hero-panel {
  position: relative;
  border-radius: 28px; overflow: hidden;
  padding: 36px 20px 20px;
  background: linear-gradient(90deg, #EDEEF1 0%, #EDEEF1 62%, #C9CDD2 100%);
}
@media (min-width: 1024px) {
  .hero-panel {
    display: flex; align-items: center;
    min-height: 600px; padding: 56px 48px;
    border-radius: 36px;
  }
}
.hero-panel__copy { position: relative; z-index: 2; }
@media (min-width: 1024px) { .hero-panel__copy { width: 55%; padding-left: 47px; } }

.hero-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(36px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -0.02em;
}
.hero-title__a { display: block; color: #121218; text-wrap: balance; }
.hero-title__b { display: block; color: #94979E; text-wrap: balance; }
/* H1 may extend past the copy column but must stop 32px before the photo
   (photo left edge = 58% of the panel minus 16px; cqw is relative to the panel content box) */
@media (min-width: 1024px) {
  .hero-panel { container-type: inline-size; }
  .hero-title { width: calc(58cqw - 88px); }
}
.hero-sub { margin-top: 20px; max-width: 480px; font-size: 18px; line-height: 28px; letter-spacing: -0.36px; color: #44454C; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 12px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.15px; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hero-btn:active { transform: translateY(1px); }
.hero-btn:focus-visible { outline: 2px solid rgb(var(--accent-1)); outline-offset: 3px; }
.hero-btn .material-symbols-outlined { font-size: 18px; }
.hero-btn--primary { background: #1B1B21; color: #fff; box-shadow: 0 1px 2px rgb(18 18 24 / 0.10), 0 8px 20px rgb(18 18 24 / 0.14); }
.hero-btn--primary:hover { background: rgb(27 27 33 / 0.9); }
.hero-btn--secondary { background: transparent; color: rgb(var(--c-title)); border: 1px solid #E0E2E6; }
.hero-btn--secondary:hover { border-color: rgb(var(--c-tertiary)); background: rgb(255 255 255 / 0.5); }

.hero-stats { display: flex; flex-wrap: wrap; column-gap: 40px; row-gap: 16px; margin-top: 40px; }
.hero-stats__num { font-family: var(--font-serif); font-weight: 500; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; color: rgb(var(--c-title)); }
@media (min-width: 1024px) { .hero-stats__num { font-size: 34px; line-height: 40px; } }
.hero-stats__label { margin-top: 2px; font-size: 15px; line-height: 22px; color: #61646B; white-space: nowrap; }
@media (min-width: 1024px) { .hero-stats__label { font-size: 16px; line-height: 24px; } }

/* Hero photo
   TODO: reemplazar por recorte sin fondo (PNG) con overflow arriba.
   When the cutout lands: drop the frame (radius, inset), anchor the image to the
   panel's bottom-right, apply var(--hero-photo-filter) and let the head rise above the top edge. */
.hero-photo { position: relative; margin-top: 28px; }
.hero-photo__img {
  display: block; width: 100%; height: 380px;
  border-radius: 24px; object-fit: cover; object-position: top center;
}
@media (min-width: 1024px) {
  .hero-photo { position: absolute; top: 16px; right: 16px; bottom: 16px; width: 42%; margin: 0; border-radius: 24px; overflow: hidden; z-index: 1; }
  .hero-photo__img { position: absolute; inset: 0; height: 100%; border-radius: 0; }
}

/* Glass card: over the photo on desktop, static below it on mobile */
.hero-glass {
  position: relative; z-index: 3; margin-top: 12px;
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: 20px;
  background: rgba(30, 30, 35, 0.88);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
@media (min-width: 1024px) {
  .hero-glass {
    position: absolute; left: 24px; bottom: 24px; margin: 0;
    width: min(360px, calc(100% - 48px));
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
    -webkit-backdrop-filter: blur(8px) saturate(180%); backdrop-filter: blur(8px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 32px rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  }
}
.hero-glass__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.hero-glass__dot { width: 8px; height: 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); flex-shrink: 0; }
.hero-glass__title { margin-top: 8px; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.2px; }
.hero-glass__text { margin-top: 4px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.85); }
.hero-glass__btn {
  flex-shrink: 0; margin-left: auto; width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: rgb(var(--c-title));
  transition: transform .2s ease;
}
.hero-glass__btn:hover { transform: translate(2px, -2px); }
.hero-glass__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }


/* ── Star border (assets/star-border.js) ── */
/* A ring the width of --sb-thickness, masked so only the card edge shows the moving glow */
.sb-ring {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  padding: var(--sb-thickness, 1px); border-radius: inherit; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.sb-ring > span {
  position: absolute; width: 300%; height: 80px; border-radius: 50%; opacity: .7;
  background: radial-gradient(circle, var(--sb-color, #1B1B21), transparent 10%);
  animation: var(--sb-speed, 6s) linear var(--sb-delay, 0s) infinite alternate;
}
.sb-ring > .sb-bottom { bottom: -40px; right: -250%; animation-name: sb-move-bottom; }
.sb-ring > .sb-top    { top: -40px;    left: -250%;  animation-name: sb-move-top; }
@keyframes sb-move-bottom { 0% { transform: translateX(0);    opacity: 1; } 100% { transform: translateX(-100%); opacity: 0; } }
@keyframes sb-move-top    { 0% { transform: translateX(0);    opacity: 1; } 100% { transform: translateX(100%);  opacity: 0; } }


/* ── Magic bento (assets/magic-bento.js) ── */
/* --glow-color is set per grid as "r, g, b"; defaults to the theme accent */
.mb-section { position: relative; }
.mb-card {
  position: relative; overflow: hidden;
  --glow-x: 50%; --glow-y: 50%; --glow-intensity: 0; --glow-radius: 200px;
  transition: box-shadow .3s ease;
}
.mb-card--border-glow::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  padding: 2px; border-radius: inherit;
  background: radial-gradient(var(--glow-radius) circle at var(--glow-x) var(--glow-y),
    rgba(var(--glow-color), calc(var(--glow-intensity) * 0.8)) 0%,
    rgba(var(--glow-color), calc(var(--glow-intensity) * 0.4)) 30%,
    transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.mb-card:hover { box-shadow: 0 4px 20px rgb(18 18 24 / 0.08), 0 0 30px rgba(var(--glow-color), 0.12); }
.mb-particle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  pointer-events: none; z-index: 5;
}
.mb-ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: 6; }
.mb-spotlight {
  position: fixed; width: 800px; height: 800px; border-radius: 50%;
  transform: translate(-50%, -50%); opacity: 0;
  pointer-events: none; z-index: 40; will-change: transform, opacity;
}

/* ── Contact (assets/contact.js) ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ct-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid #1B1B21; font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, box-shadow .2s ease;
}
.ct-pill--light { background: #fff; color: #1B1B21; }
.ct-pill--light:hover { background: #F1F2F4; }
.ct-pill--dark { background: #1B1B21; color: #fff; }
.ct-pill--dark:hover { background: rgb(27 27 33 / 0.88); }
.ct-pill:focus-visible, .ct-dialog__close:focus-visible, .ct-icon-btn:focus-visible, .ct-cta__main:focus-visible, .ct-cta__link:focus-visible { outline: 2px solid #1B1B21; outline-offset: 3px; }

.ct-dialog {
  padding: 0; border: 0; border-radius: 24px; background: #fff; color: #1B1B21;
  width: min(460px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px);
  box-shadow: 0 24px 64px rgb(18 18 24 / 0.22);
}
.ct-dialog::backdrop { background: rgb(18 18 24 / 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ct-dialog[open] { animation: ct-pop .22s ease-out; }
.ct-dialog[open]::backdrop { animation: ct-fade .22s ease-out; }
@keyframes ct-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ct-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ct-fade { from { opacity: 0; } to { opacity: 1; } }
.ct-dialog__inner { position: relative; padding: 36px 32px 32px; }
.ct-dialog__title { margin: 0; padding-right: 48px; font-family: var(--font-serif); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.56px; color: #121218; }
.ct-dialog__note { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: #61646B; }
.ct-dialog__email { margin: 20px 0 0; font-family: var(--font-serif); font-size: 22px; line-height: 30px; color: #121218; overflow-wrap: anywhere; }
@media (min-width: 480px) { .ct-dialog__email { font-size: 24px; line-height: 32px; } }
.ct-dialog__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ct-dialog__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: #61646B; cursor: pointer;
}
.ct-dialog__close:hover { background: rgb(18 18 24 / 0.06); color: #121218; }

@media (max-width: 639px) {
  .ct-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .ct-dialog[open] { animation: ct-sheet .26s ease-out; }
  .ct-dialog__inner { padding: 32px 20px calc(20px + env(safe-area-inset-bottom)); }
  .ct-dialog__actions { flex-direction: column; }
  .ct-pill { height: 48px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-dialog[open], .ct-dialog[open]::backdrop { animation: none; }
}

/* Closing block CTA */
.ct-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
.ct-cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.ct-cta__main {
  flex: 1 1 200px; max-width: 460px; min-width: 0;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 10px 18px; border-radius: 999px;
  background: #1B1B21; color: #fff; text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease;
}
.ct-cta__main:hover { background: rgb(27 27 33 / 0.88); box-shadow: 0 6px 20px rgb(18 18 24 / 0.16); }
.ct-cta__main .material-symbols-outlined { flex: none; font-size: 18px; }
.ct-cta__email { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 500; text-align: left; overflow-wrap: anywhere; }
@media (min-width: 400px) { .ct-cta__email { font-size: 15px; } }
@media (min-width: 640px) { .ct-cta__main { padding: 12px 22px; } .ct-cta__email { font-size: 16px; } }
.ct-icon-btn {
  position: relative; flex: none; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #1B1B21; border-radius: 999px; background: #fff; color: #1B1B21; cursor: pointer;
  transition: background .2s ease;
}
.ct-icon-btn:hover { background: #F1F2F4; }
.ct-icon-btn .material-symbols-outlined { font-size: 20px; }
.ct-icon-btn::after {
  content: attr(aria-label); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); padding: 6px 10px; border-radius: 8px;
  background: #1B1B21; color: #fff; font-size: 12px; line-height: 16px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.ct-icon-btn:hover::after, .ct-icon-btn:focus-visible::after, .ct-icon-btn.is-copied::after { opacity: 1; }
@media (max-width: 460px) { .ct-icon-btn::after { left: 0; transform: none; } }
.ct-cta__link { font-size: 14px; line-height: 20px; color: #61646B; text-decoration: none; }
.ct-cta__link:hover { color: #121218; text-decoration: underline; }
@media (max-width: 399px) {
  .ct-cta__main { padding: 10px 14px; gap: 8px; }
  .ct-cta__email { letter-spacing: -0.1px; }
}

/* ── Case card with a secondary link (cover link + discreet demo link) ── */
.pc__cover { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.pc__cover:focus-visible { outline: 2px solid #1B1B21; outline-offset: -4px; }
.pc:has(.pc__cover) .pc__body { pointer-events: none; }
.pc__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; margin-left: auto; }
@media (max-width: 400px) { .pc__actions .pc__demo, .pc__actions .pc__cta { padding: 10px 14px; } .pc__foot { gap: 10px; } }
.pc__demo { flex-shrink: 0; position: relative; z-index: 2; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid #C9CBD1; background: transparent; color: #121218; text-decoration: none; font-weight: 500; font-size: 14px; line-height: 18px; white-space: nowrap; transition: background-color .3s ease, border-color .3s ease; }
.pc__demo:hover { background: rgb(18 18 24 / 0.04); border-color: #121218; }
.pc__demo:focus-visible { outline: 2px solid #1B1B21; outline-offset: 3px; }
/* Three cards: 3 columns on desktop; on tablet the odd last card spans the row so there is no empty slot */
@media (min-width: 768px) and (max-width: 1023px) { .pc-grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .pc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
