/*
 * animations.css — keyframes, reveal classes, marquee, scrollytelling,
 * 3D card tilt, magnetic CTA, scroll progress bar, view-transition names.
 *
 * Reduced-motion friendly: every animation that's not essential to layout
 * is gated on (prefers-reduced-motion: no-preference). With reduce, all
 * elements snap to their final state.
 */

/* -------------------------------------------------------------------------- */
/* Reveal-on-scroll — IntersectionObserver toggles data-reveal="visible"      */
/* -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-spring-reveal);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal='visible'] {
  opacity: 1;
  transform: translateY(0);
}

/* Direction modifiers */
[data-reveal='hidden'][data-reveal-from='left']  { transform: translateX(-32px); }
[data-reveal='hidden'][data-reveal-from='right'] { transform: translateX(32px); }
[data-reveal='hidden'][data-reveal-from='down']  { transform: translateY(-28px); }
[data-reveal='hidden'][data-reveal-from='scale'] { transform: scale(0.94); }
[data-reveal='visible'][data-reveal-from] { transform: none; }

/* Reduced motion: instant reveal, no transform */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Page-load entrance for the hero (no scroll trigger)                        */
/* -------------------------------------------------------------------------- */

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-scale-in {
  from { opacity: 0; transform: scale(0.92); filter: blur(12px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}
/* Animation drops in vertically. No rotate — rotate at any non-zero angle
 * forces non-integer pixel rasterization which keeps a blurry GPU layer
 * after the animation ends. */
@keyframes char-drop-in {
  0%   { opacity: 0; transform: translateY(0.4em); }
  60%  { opacity: 1; transform: translateY(-0.04em); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-anim-icon       { animation: hero-scale-in 1100ms var(--ease-spring-reveal) 200ms both; }
  .hero-anim-lead       { animation: hero-fade-in 800ms var(--ease-out) 1100ms both; }
  .hero-anim-ctas       { animation: hero-fade-in 800ms var(--ease-out) 1300ms both; }
  .hero-anim-scroll-cue { animation: hero-fade-in 800ms var(--ease-out) 1700ms both; }
}
/* Hero title — always visible, no animation. (Char-stagger removed
 * because retina rendering blurred after the animation completed.) */
.hero-headline,
.hero-anim-headline {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------------------- */
/* Ambient drift — soft hero glows that breathe                               */
/* -------------------------------------------------------------------------- */

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(20px, -30px); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-22px, 18px); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.02); opacity: 0.96; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: drift-a 18s var(--ease-in-out) infinite; }
  .hero::after  { animation: drift-b 22s var(--ease-in-out) infinite; }
  .hero-illustration { animation: breathe 12s var(--ease-in-out) infinite; }
}

/* -------------------------------------------------------------------------- */
/* Pulse-glow — store callouts                                                */
/* -------------------------------------------------------------------------- */

@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(45, 212, 191, 0.4),
      0 0 0 0 rgba(167, 139, 250, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(45, 212, 191, 0),
      0 0 24px 6px rgba(167, 139, 250, 0.2);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .store-callout { animation: pulse-glow 4s var(--ease-in-out) infinite; }
  .store-callout:nth-of-type(2) { animation-delay: 2s; }
}

/* -------------------------------------------------------------------------- */
/* Scroll progress bar — top of viewport, teal→violet gradient                */
/* -------------------------------------------------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 60;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: var(--gradient-glow);
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}
/* Native CSS scroll-driven animation where supported */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress__bar {
      animation: scroll-progress-fill linear;
      animation-timeline: scroll(root);
    }
    @keyframes scroll-progress-fill {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
  }
}

/* -------------------------------------------------------------------------- */
/* Magnetic CTA — controlled by JS via --mx, --my custom properties           */
/* -------------------------------------------------------------------------- */

.magnetic {
  --mx: 0px;
  --my: 0px;
  transform: translate(var(--mx), var(--my));
  transition: transform 360ms var(--ease-spring);
  will-change: transform;
}

/* -------------------------------------------------------------------------- */
/* 3D card tilt — controlled by JS via --rx, --ry, --glow-x, --glow-y         */
/* -------------------------------------------------------------------------- */

.tilt {
  --rx: 0deg;
  --ry: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 360ms var(--ease-spring);
  will-change: transform;
  position: relative;
}
.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--glow-x) var(--glow-y),
    rgba(45, 212, 191, 0.18),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms var(--ease-soft);
}
.tilt:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .magnetic, .tilt { transform: none !important; transition: none !important; }
  .tilt::after { display: none !important; }
}

/* -------------------------------------------------------------------------- */
/* Scroll cue — bouncing chevron                                              */
/* -------------------------------------------------------------------------- */

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
@keyframes bounce-cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue { animation: bounce-cue 1800ms var(--ease-in-out) infinite; }
}

/* -------------------------------------------------------------------------- */
/* Marquee — tagline strip + archetype rows                                   */
/* -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  align-items: center;
  padding-block: 8px;
  will-change: transform;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track--left  { animation: marquee-left  var(--dur-marquee) linear infinite; }
  .marquee__track--right { animation: marquee-right var(--dur-marquee) linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

/* -------------------------------------------------------------------------- */
/* Tagline strip                                                              */
/* -------------------------------------------------------------------------- */

.tagline-strip {
  padding-block: 28px;
  background:
    linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.04), transparent),
    var(--bg);
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.tagline-strip .marquee__track span {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-mut);
}
.tagline-strip .marquee__track .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: inline-block;
}

/* -------------------------------------------------------------------------- */
/* Archetype marquee — chips                                                  */
/* -------------------------------------------------------------------------- */

.archetypes-section {
  padding-block: 64px;
  position: relative;
  overflow: hidden;
}
.archetypes-section .container { position: relative; z-index: 2; }
.archetypes-rows { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.archetypes-row { width: 100%; }
.archetype-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 22%, var(--border));
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 240ms var(--ease-spring),
              box-shadow 240ms var(--ease-soft),
              border-color 240ms var(--ease-soft);
}
.archetype-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.archetype-chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-teal) 50%, var(--border));
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.18);
}

/* -------------------------------------------------------------------------- */
/* Numbered feature cards (01 / 02 / 03 sidemarks)                            */
/* -------------------------------------------------------------------------- */

.feature-card { position: relative; }
.feature-card .feature-num {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brand-violet-light);
  opacity: 0.6;
}

/* -------------------------------------------------------------------------- */
/* Scrollytelling — How it works                                              */
/* -------------------------------------------------------------------------- */

.howit-section {
  padding-block: 56px;
  position: relative;
}
@media (min-width: 768px) {
  .howit-section { padding-block: 80px; }
}

/* Journey-flow timeline — replaces the prior phone-mockup scrollytelling.
 * Mobile: vertical with a connector rail down the left of the numbers.
 * Desktop ≥1024px: 4-up horizontal with a connector rail across the tops. */
.howit-flow {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
}
.howit-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 18px 18px 0;
}
/* Vertical connector rail — connects the numbered circles down the left.
 * Sits behind the numbers via z-index. */
.howit-flow::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand-teal) 60%, transparent),
    color-mix(in srgb, var(--brand-violet) 60%, transparent));
  border-radius: 2px;
  z-index: 0;
}
.howit-step__num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow:
    0 6px 18px rgba(20, 184, 166, 0.30),
    0 6px 24px rgba(139, 92, 246, 0.30);
  flex-shrink: 0;
}
.howit-step__body {
  padding-top: 2px;
}
.howit-step h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.3;
}
.howit-step p {
  margin: 0;
  color: var(--text-mut);
  font-size: 15px;
  line-height: 1.55;
}

@media (min-width: 1024px) {
  /* Desktop: 4 columns side-by-side, connector rail across the tops. */
  .howit-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
  }
  .howit-step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
    text-align: left;
  }
  .howit-flow::before {
    /* Horizontal rail aligned with the centers of the numbered circles. */
    top: 27px;
    left: calc(12.5% + 28px);
    right: calc(12.5% + 28px);
    bottom: auto;
    height: 2px;
    width: auto;
  }
  .howit-step__num {
    margin-bottom: 4px;
  }
}

/* -------------------------------------------------------------------------- */
/* 4 Quiz Dimensions — orbital                                                */
/* -------------------------------------------------------------------------- */

.dimensions-section {
  padding-block: 80px;
  position: relative;
  overflow: hidden;
}
/* The orbital diagram looks cramped on small screens — pills overflow
 * the circle and the inner rings get noisy. Hide on mobile; the dim-cards
 * below carry the substantive content. */
.orbital {
  position: relative;
  width: min(560px, 90vw);
  aspect-ratio: 1;
  margin: 32px auto 0;
  display: none;
}
@media (min-width: 768px) {
  .orbital { display: block; }
}
.orbital__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow:
    0 0 32px rgba(20, 184, 166, 0.45),
    0 0 72px rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.orbital__ring {
  position: absolute;
  inset: 6%;
  border: 1px dashed color-mix(in srgb, var(--brand-violet) 32%, transparent);
  border-radius: 50%;
}
.orbital__ring--inner {
  inset: 24%;
  border-color: color-mix(in srgb, var(--brand-teal) 30%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .orbital__ring        { animation: spin 60s linear infinite; }
  .orbital__ring--inner { animation: spin 38s linear infinite reverse; }
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.orbital__pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 28%, var(--border));
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.orbital__pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.orbital__pill--top    { top: 0; left: 50%; transform: translate(-50%, -50%); }
.orbital__pill--right  { top: 50%; right: 0; transform: translate(50%, -50%); }
.orbital__pill--bottom { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.orbital__pill--left   { top: 50%; left: 0; transform: translate(-50%, -50%); }

/* Subtitle cards under the orbital — mirror iOS categories.json with the
 * one-line description for each of the four categories. */
.dim-cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px)  { .dim-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .dim-cards { grid-template-columns: repeat(4, 1fr); } }
.dim-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 14%, var(--border));
  border-radius: var(--radius-card);
  padding: 18px 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-spring),
              border-color var(--dur-fast) var(--ease-soft);
}
.dim-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}
.dim-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-teal) 35%, var(--border));
}
.dim-card h4 {
  margin: 4px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.dim-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-mut);
  line-height: 1.45;
}

/* -------------------------------------------------------------------------- */
/* Quote card — large pull quote on dark-hero gradient                        */
/* -------------------------------------------------------------------------- */

.quote-section { padding-block: 64px; }
.quote-card {
  position: relative;
  background:
    radial-gradient(ellipse 600px 320px at 0% 100%, rgba(20, 184, 166, 0.20), transparent 70%),
    radial-gradient(ellipse 600px 320px at 100% 0%, rgba(139, 92, 246, 0.25), transparent 70%),
    var(--gradient-dark-hero);
  border-radius: var(--radius-hero);
  padding: 48px 32px;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: var(--shadow-brand-glow);
}
@media (min-width: 768px) {
  .quote-card { padding: 80px 48px; }
}
.quote-card .mark {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 96px;
  line-height: 0.5;
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: -28px;
}
.quote-card blockquote {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.quote-card cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}

/* -------------------------------------------------------------------------- */
/* Footer hover underlines                                                    */
/* -------------------------------------------------------------------------- */

.footer-col a {
  position: relative;
  display: inline-block;
}
.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1.5px;
  width: 100%;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-spring);
}
.footer-col a:hover::after { transform: scaleX(1); }

/* -------------------------------------------------------------------------- */
/* View Transitions API — smooth cross-fade page navs                         */
/* -------------------------------------------------------------------------- */

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 320ms;
  animation-timing-function: var(--ease-out);
}

/* Keep certain elements stable during transitions (header, footer) */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Hero starfield canvas                                                      */
/* -------------------------------------------------------------------------- */

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* -------------------------------------------------------------------------- */
/* Final CTA section                                                          */
/* -------------------------------------------------------------------------- */

.final-cta {
  text-align: center;
  padding-block: 96px;
  position: relative;
}
.final-cta__title {
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  letter-spacing: -0.03em;
  font-weight: 900;
  /* Georgian glyphs (and gradient `background-clip: text`) need extra
   * line-height room — line-height < 1 clips descenders. */
  line-height: 1.18;
  padding-block: 0.05em;
  margin-bottom: 16px;
  background: linear-gradient(
    180deg,
    #FFFFFF 0%,
    var(--brand-teal-light) 60%,
    var(--brand-violet-light) 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.final-cta .lead { max-width: 580px; margin: 0 auto 32px; }

/* -------------------------------------------------------------------------- */
/* Blog section + cards                                                       */
/* -------------------------------------------------------------------------- */

.blog-section { padding-block: 64px; }
.blog-section__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .blog-section__head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }
}
.blog-more-link {
  display: inline-block;
  font-weight: 700;
  color: var(--brand-teal-light);
  white-space: nowrap;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.blog-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 16%, var(--border));
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  transition:
    transform 360ms var(--ease-spring),
    border-color 240ms var(--ease-soft),
    box-shadow 240ms var(--ease-soft);
}
.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-teal) 40%, var(--border));
  box-shadow: var(--shadow-brand-glow);
}
.blog-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}
.blog-card__cover--placeholder {
  background:
    radial-gradient(ellipse 200px 120px at 30% 30%, rgba(20, 184, 166, 0.20), transparent 70%),
    radial-gradient(ellipse 200px 120px at 70% 70%, rgba(139, 92, 246, 0.20), transparent 70%),
    var(--surface-2);
}
.blog-card__body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card__date {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 10px;
}
.blog-card__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 8px;
}
.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mut);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__more {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-teal-light);
  margin-top: auto;
}

/* Skeleton loaders */
.blog-card--skeleton .blog-card__cover {
  position: relative;
  overflow: hidden;
}
.blog-card--skeleton .blog-card__cover::after,
.skel {
  display: block;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--surface) 70%, transparent) 0%,
    color-mix(in srgb, var(--surface-2) 90%, transparent) 50%,
    color-mix(in srgb, var(--surface) 70%, transparent) 100%
  );
  background-size: 200% 100%;
  border-radius: 6px;
}
.blog-card--skeleton .blog-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
}
.skel--date    { width: 96px;  height: 10px; margin-bottom: 12px; }
.skel--title   { width: 90%;   height: 18px; margin-bottom: 10px; }
.skel--excerpt { width: 100%;  height: 44px; margin-bottom: 0; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .blog-card--skeleton .blog-card__cover::after,
  .skel { animation: shimmer 1600ms linear infinite; }
}

.blog-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-mut);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  grid-column: 1 / -1;
}

/* -------------------------------------------------------------------------- */
/* Blog detail view (single post — /blog/?id=POSTID)                          */
/* -------------------------------------------------------------------------- */

.blog-detail-section { padding-block: 32px 80px; }
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-mut);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--dur-fast) var(--ease-soft);
}
.blog-back:hover { color: var(--brand-teal-light); }

.blog-detail {
  max-width: 720px;
  margin: 0 auto;
}
.blog-detail__cover {
  width: 100%;
  border-radius: var(--radius-card);
  margin-bottom: 32px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.blog-detail__head { margin-bottom: 32px; }
.blog-detail__cats {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-detail__cats li {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-teal) 14%, transparent);
  color: var(--brand-teal-light);
  text-transform: uppercase;
}
.blog-detail__title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 800;
}
.blog-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-mut);
  font-size: 14px;
}
.blog-detail__loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-mut);
}

/* Article body — typographic rhythm for the markdown render */
.blog-detail__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.blog-detail__body h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 36px 0 14px;
  color: var(--text);
}
.blog-detail__body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
.blog-detail__body h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text);
}
.blog-detail__body p { margin: 0 0 18px; }
.blog-detail__body strong { color: var(--text); font-weight: 700; }
.blog-detail__body em { color: var(--text); }
.blog-detail__body a {
  color: var(--brand-teal-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.blog-detail__body a:hover { color: var(--brand-violet-light); }
.blog-detail__body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.blog-detail__body li { margin-bottom: 6px; }
.blog-detail__body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--brand-teal);
  background: color-mix(in srgb, var(--brand-teal) 6%, transparent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-style: italic;
  color: var(--text);
}
.blog-detail__body hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 36px 0;
}

/* Numbered lists — same rhythm as ul, with native decimal markers. */
.blog-detail__body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.blog-detail__body ol li { margin-bottom: 6px; }

/* Strikethrough — render faded so it reads "crossed out" without shouting. */
.blog-detail__body del {
  color: var(--text-mut);
  text-decoration-thickness: 1.5px;
}

/* Inline code — `like this`. Subtle tinted pill that matches the surface
 * elevation without competing with body color. */
.blog-detail__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--brand-teal-light);
  border: 1px solid var(--border);
}

/* Code blocks — full-width container with horizontal scroll for long lines.
 * The inner <code> resets the inline-code pill styles. */
.blog-detail__body pre {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.blog-detail__body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* GFM tables — wrapped in .md-table-wrap so wide tables scroll horizontally
 * on narrow screens without breaking page layout. */
.blog-detail__body .md-table-wrap {
  margin: 0 0 22px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.blog-detail__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.blog-detail__body thead th {
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  color: var(--text);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.blog-detail__body tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.blog-detail__body tbody tr:last-child td { border-bottom: 0; }
.blog-detail__body tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
}

/* -------------------------------------------------------------------------- */
/* Mobile-specific overrides                                                  */
/* -------------------------------------------------------------------------- */

/* Touch tap highlight off (we render our own focus states) */
@media (hover: none) {
  .feature-card:hover, .audience-block:hover, .blog-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

/* Safe-area insets for iOS notch + home-indicator */
@supports (padding-top: env(safe-area-inset-top)) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .hero { padding-top: max(60px, env(safe-area-inset-top) + 40px); }
}

/* Touch-action manipulation — disable double-tap zoom on actionable items */
.button, .store-callout, .nav-toggle, .lang-pill button,
.feature-card, .audience-block, .blog-card,
.faq-item summary, .skip-to-content {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile: tighter section padding so we don't waste vertical space */
@media (max-width: 767px) {
  .howit-section, .dimensions-section { padding-block: 48px; }
  .archetypes-section { padding-block: 40px; }
  .quote-section { padding-block: 40px; }
  .quote-card { padding: 32px 20px; }
  .final-cta { padding-block: 64px; }

  /* Smaller archetype chips */
  .archetype-chip { padding: 8px 14px; font-size: 13px; }

  /* Faster marquee on mobile so it doesn't feel sluggish */
  .marquee__track--left  { animation-duration: 32s; }
  .marquee__track--right { animation-duration: 32s; }

  /* Phone frame inside scrollytelling — fit screen */
  .phone-frame { width: min(260px, 80vw); }

  /* Orbital pills smaller */
  .orbital__pill { font-size: 12px; padding: 8px 12px; }
}

/* Very small phones (≤360px) */
@media (max-width: 360px) {
  .archetype-chip { padding: 6px 10px; font-size: 12px; }
  .orbital { width: 95vw; }
  .orbital__pill { font-size: 11px; padding: 6px 10px; }
}
