:root {
  --pt-accent: #5b3fd6;
  --pt-on-accent: #fff;
  --pt-glass: rgba(255, 255, 255, 0.46);
  --pt-blur: 28px;
  --pt-ink: #2a174f;
  --pt-muted: #6b5a8f;
  --pt-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --pt-sans: Inter, "Segoe UI", sans-serif;
  --pt-gap: 18px;
  --pt-row: 128px;
  --pt-pad: 20px;
  --pt-layout-max: 980px;
  --pt-radius: 32px;
  --pt-pink: #f071a5;
  --pt-bg-fallback: #1a1430;
  /* Card fills — opaque enough to read on pastel + dark themes */
  --pt-tone-soft: color-mix(in srgb, #fff 76%, var(--pt-muted) 24%);
  --pt-tone-blush: color-mix(in srgb, var(--pt-accent) 20%, #fff 80%);
  --pt-tone-mist: color-mix(in srgb, var(--pt-muted) 34%, #fff 66%);
  --pt-tone-accent-wash: color-mix(in srgb, var(--pt-accent) 34%, #fff 66%);
  --pt-tone-quote: color-mix(in srgb, #fff 90%, var(--pt-accent) 10%);
  --pt-tone-solid: color-mix(in srgb, var(--pt-bg-fallback) 86%, #000 14%);
  --pt-tone-cream: color-mix(in srgb, var(--pt-muted) 55%, var(--pt-ink) 45%);
  --pt-tone-pink: color-mix(in srgb, var(--pt-accent) 55%, var(--pt-pink) 45%);
  --pt-tone-tan: color-mix(in srgb, var(--pt-muted) 70%, var(--pt-ink) 30%);
  --pt-tone-mint: color-mix(in srgb, #1f8a68 82%, var(--pt-accent) 18%);
  --pt-tone-sky: color-mix(in srgb, #2a6fad 82%, var(--pt-accent) 18%);
  --pt-tone-frost: color-mix(in srgb, #fff 62%, var(--pt-glass));
  --pt-tone-contrast: color-mix(in srgb, var(--pt-ink) 90%, var(--pt-accent) 10%);
  --pt-tone-sage: color-mix(in srgb, #3f7a5c 26%, #fff 74%);
  --pt-tone-coral: color-mix(in srgb, #e07a5f 30%, #fff 70%);
  --pt-tone-sand: color-mix(in srgb, #c4a574 36%, #fff 64%);
  --pt-tone-slate: color-mix(in srgb, var(--pt-ink) 10%, #e6ebf0 90%);
  --pt-tone-rose: color-mix(in srgb, var(--pt-pink) 26%, #fff 74%);
  --pt-tone-sage-solid: color-mix(in srgb, #2f6a4a 78%, var(--pt-ink) 22%);
  --pt-tone-coral-solid: color-mix(in srgb, #d4654a 82%, var(--pt-ink) 18%);
  --pt-tone-sand-solid: color-mix(in srgb, #a8844e 75%, var(--pt-ink) 25%);
  --pt-tone-slate-solid: color-mix(in srgb, #4a5563 80%, var(--pt-ink) 20%);
  --pt-tone-rose-solid: color-mix(in srgb, var(--pt-pink) 72%, var(--pt-ink) 28%);
  --pt-danger: #b42323;
  --pt-danger-soft: rgba(214, 69, 69, 0.15);
  --pt-shadow: color-mix(in srgb, var(--pt-ink) 18%, transparent);
  --pt-line: color-mix(in srgb, var(--pt-ink) 12%, transparent);
  --pt-surface: color-mix(in srgb, #fff 88%, var(--pt-glass));
  --pt-site-paper: color-mix(in srgb, var(--pt-ink) 4%, #fff);
  --pt-site-panel: color-mix(in srgb, #fff 94%, var(--pt-ink));
  --pt-site-muted: color-mix(in srgb, var(--pt-ink) 8%, #fff);
  --pt-site-line: color-mix(in srgb, var(--pt-ink) 8%, transparent);
  --pt-sticky-top: 72px;
  --pt-motion-duration: 0.22s;
  --pt-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pt-motion-lift: 4px;
  --pt-motion-scale: 1.01;
  --pt-motion-zoom: 1.04;
  --pt-motion-enter: 0.5s;
  --pt-motion-glow: 0;
  --pt-motion-float: 0px;
  --pt-motion-shimmer: 0;
}

body.page-shell[data-density="compact"] {
  --pt-gap: 10px;
  --pt-row: 100px;
  --pt-pad: 16px;
}

/* Site density — soft website bands (not sharp app chrome) */
body.page-shell[data-density="site"] {
  --pt-gap: 12px;
  --pt-row: 112px;
  --pt-pad: 28px;
  --pt-sticky-top: 0px;
}

body.page-shell[data-density="site"] .pt-layout {
  padding: 12px clamp(12px, 2.5vw, 28px) 64px;
  max-width: var(--pt-layout-max, 1120px);
}

body.page-shell[data-density="site"] .pt-grid .pt-tile.glass {
  background: var(--pt-site-panel);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--pt-ink) 4%, transparent);
  border-radius: var(--pt-radius);
}

body.page-shell[data-density="site"] .pt-grid .pt-tile:hover {
  transform: none !important;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--pt-ink) 4%, transparent) !important;
}

/* Header */
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="nav"] {
  background: color-mix(in srgb, var(--pt-site-panel) 94%, transparent) !important;
  border: 1px solid var(--pt-site-line);
  border-radius: var(--pt-radius) !important;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none !important;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="nav"] .nav-tile a {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 9px 12px;
  color: color-mix(in srgb, var(--pt-ink) 75%, transparent);
  font-size: 0.9rem;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="nav"] .nav-tile a:hover {
  background: color-mix(in srgb, var(--pt-ink) 5%, transparent);
  color: var(--pt-ink);
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="nav"] .nav-tile a:first-child {
  font-family: var(--pt-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--pt-ink);
  padding-left: 6px;
  padding-right: 18px;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="nav"] .nav-tile a:first-child:hover {
  background: transparent;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="nav"] .nav-tile a.is-primary {
  margin-left: auto;
  background: var(--pt-ink);
  color: var(--pt-on-accent);
  border-radius: 999px;
  box-shadow: none;
  padding: 9px 16px;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="nav"] .nav-tile a.is-primary:hover {
  filter: brightness(1.08);
  background: var(--pt-ink);
  color: var(--pt-on-accent);
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="nav"] .nav-tile__inner {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  overflow: visible;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="nav"] .pt-tile-inner {
  padding: 0;
}

/* Site hero — keep the lattice layout (same as edit). Only quiet the chrome. */
body.page-shell[data-density="site"] .section-frame--hero {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: inherit;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"]:has(.section-frame--hero) {
  min-height: clamp(380px, 54vh, 480px);
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"]:has(.section-frame--hero) > .pt-tile-inner {
  height: 100%;
  display: flex;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"]:has(.section-frame--hero) .section-frame--hero,
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"]:has(.section-frame--hero) .section-frame.is-editing-live.section-frame--hero {
  height: 100%;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Do not collapse the hero lattice into a flex stack — public must match edit */
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"]:has(.section-frame--hero) .section-canvas {
  display: grid !important;
  grid-template-columns: repeat(var(--section-cols, 6), minmax(0, 1fr)) !important;
  grid-template-rows: repeat(var(--section-rows, 4), minmax(0, 1fr)) !important;
  height: 100%;
  min-height: 100%;
  width: 100%;
  max-width: none;
  gap: 6px;
  align-content: stretch;
  justify-items: stretch;
  align-items: stretch;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="image"][data-rows="3"] {
  min-height: clamp(380px, 54vh, 480px);
  max-height: none;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="image"][data-rows="3"] > .pt-tile-inner,
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="image"][data-rows="3"] .tile-cover {
  height: 100%;
  max-height: none;
  object-fit: cover;
}

/* Meta / teach note — quiet label, not a second hero */
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"]:has(.section-frame--label) .section-frame--label {
  padding: 20px 8px 8px;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"]:has(.section-frame--label) .section-canvas {
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-template-columns: none;
  grid-template-rows: none;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"]:has(.section-frame--label) .section-block {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100%;
  padding: 0;
}

body.page-shell[data-density="site"] .section-frame--panel {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: inherit;
  padding: clamp(28px, 4.5cqh, 44px) clamp(26px, 4cqw, 44px);
}

body.page-shell[data-density="site"] .section-frame--label {
  background: transparent;
  border: none;
  padding: 28px 8px 4px;
}

body.page-shell[data-density="site"] .section-frame--label .section-heading {
  font-family: var(--pt-serif);
  font-size: clamp(1.25rem, 1.5vw + 0.7rem, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

body.page-shell[data-density="site"] .section-frame--panel .section-heading {
  font-family: var(--pt-serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

body.page-shell[data-density="site"] .section-frame--label .section-sub {
  font-family: var(--pt-sans);
  font-size: 0.9375rem;
  max-width: 40rem;
  color: color-mix(in srgb, var(--pt-ink) 58%, var(--pt-muted) 42%);
}

/* Photography */
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="image"],
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="hero"],
body.page-shell[data-density="site"] .pt-grid .pt-tile:has(.link-card--media) {
  border-radius: var(--pt-radius) !important;
  box-shadow: none !important;
  background: var(--pt-site-muted) !important;
  overflow: hidden;
}

/* Lead banner — wide, controlled height */
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="image"][data-rows="2"][data-cols="4"],
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="image"][data-rows="2"] {
  min-height: clamp(220px, 34vh, 300px);
  max-height: 300px;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="image"][data-rows="2"] > .pt-tile-inner,
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="image"][data-rows="2"] .tile-cover {
  height: 100%;
  max-height: 300px;
  object-fit: cover;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="image"] .tile-cover,
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="hero"] .tile-cover,
body.page-shell[data-density="site"] .link-card__media .tile-cover {
  border-radius: inherit;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile:has(.link-card--media):hover .link-card__media .tile-cover {
  transform: scale(1.03);
}

body.page-shell[data-density="site"] .link-card--media .link-card__title {
  font-family: var(--pt-serif);
  font-size: clamp(1.15rem, 1.8cqw + 0.5rem, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

body.page-shell[data-density="site"] .link-card--media .link-card__sub {
  opacity: 0.85;
}

/* Tip / method cards */
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="text"] {
  background: var(--pt-site-panel) !important;
  border: none;
  box-shadow: none;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="text"] .pt-tile-inner {
  padding: 22px 20px 24px;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="text"] .text-card {
  gap: 8px;
  padding: 0;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="text"] .text-card__byline {
  color: var(--pt-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="text"] .text-card__heading {
  font-family: var(--pt-serif);
  font-size: clamp(1.05rem, 1.2vw + 0.65rem, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="text"] .text-card__body {
  -webkit-line-clamp: 5;
  font-family: var(--pt-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--pt-ink) 55%, var(--pt-muted) 45%);
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="text"][data-fill="cream"] {
  background: var(--pt-tone-soft) !important;
}

body.page-shell[data-density="site"] .pt-tile-inner {
  border-radius: inherit;
}

body.page-shell[data-density="site"] .section-cta {
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: none;
}

body.page-shell[data-density="site"] .section-cta--ghost {
  border-radius: 999px;
  background: var(--pt-site-panel);
  border-color: color-mix(in srgb, var(--pt-ink) 16%, transparent);
}

body.page-shell[data-density="site"] .tile-cta {
  border-radius: 999px;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"] .section-frame {
  height: auto;
  min-height: 0;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"] .section-canvas {
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  grid-template-rows: repeat(var(--section-rows, 4), auto);
  align-content: start;
  gap: 10px;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="newsletter"],
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="contact"],
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="map"] {
  background: var(--pt-site-panel) !important;
  border: none;
}

body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="newsletter"] .pt-tile-inner,
body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="contact"] .pt-tile-inner {
  padding: 24px;
}

body.page-shell[data-density="site"] .media-label {
  display: none;
}

body.page-shell[data-density="site"] .newsletter-form input,
body.page-shell[data-density="site"] .newsletter-form .section-cta {
  border-radius: 999px;
}

/* Theme motion — applied on every public page via data-motion */
body.page-shell[data-motion="none"] {
  --pt-motion-duration: 0s;
  --pt-motion-ease: linear;
  --pt-motion-lift: 0px;
  --pt-motion-scale: 1;
  --pt-motion-zoom: 1;
  --pt-motion-enter: 0s;
  --pt-motion-glow: 0;
  --pt-motion-float: 0px;
  --pt-motion-shimmer: 0;
}

body.page-shell[data-motion="subtle"] {
  --pt-motion-duration: 0.2s;
  --pt-motion-ease: ease;
  --pt-motion-lift: 3px;
  --pt-motion-scale: 1;
  --pt-motion-zoom: 1.03;
  --pt-motion-enter: 0s;
  --pt-motion-glow: 0;
  --pt-motion-float: 0px;
  --pt-motion-shimmer: 0;
}

body.page-shell[data-motion="smooth"] {
  --pt-motion-duration: 0.45s;
  --pt-motion-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --pt-motion-lift: 5px;
  --pt-motion-scale: 1.01;
  --pt-motion-zoom: 1.05;
  --pt-motion-enter: 0.7s;
  --pt-motion-glow: 0.35;
  --pt-motion-float: 0px;
  --pt-motion-shimmer: 0.45;
}

body.page-shell[data-motion="lively"] {
  --pt-motion-duration: 0.3s;
  --pt-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pt-motion-lift: 7px;
  --pt-motion-scale: 1.018;
  --pt-motion-zoom: 1.08;
  --pt-motion-enter: 0.5s;
  --pt-motion-glow: 0.55;
  --pt-motion-float: 0px;
  --pt-motion-shimmer: 0.7;
}

body.page-shell[data-motion="bounce"] {
  --pt-motion-duration: 0.55s;
  --pt-motion-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pt-motion-lift: 9px;
  --pt-motion-scale: 1.028;
  --pt-motion-zoom: 1.1;
  --pt-motion-enter: 0.65s;
  --pt-motion-glow: 0.65;
  --pt-motion-float: 5px;
  --pt-motion-shimmer: 0.8;
}

body.page-shell[data-motion="playful"] {
  --pt-motion-duration: 0.4s;
  --pt-motion-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
  --pt-motion-lift: 10px;
  --pt-motion-scale: 1.03;
  --pt-motion-zoom: 1.12;
  --pt-motion-enter: 0.55s;
  --pt-motion-glow: 0.8;
  --pt-motion-float: 7px;
  --pt-motion-shimmer: 1;
}

body.page-shell[data-motion="cinematic"] {
  --pt-motion-duration: 0.7s;
  --pt-motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pt-motion-lift: 8px;
  --pt-motion-scale: 1.015;
  --pt-motion-zoom: 1.07;
  --pt-motion-enter: 0.9s;
  --pt-motion-glow: 0.7;
  --pt-motion-float: 4px;
  --pt-motion-shimmer: 0.55;
}

@keyframes pt-reveal-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pt-reveal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pt-reveal-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pt-reveal-tilt {
  from { opacity: 0; transform: translateY(18px) rotate(-1.2deg) scale(0.97); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes pt-reveal-cinema {
  from { opacity: 0; transform: translateY(28px) scale(1.04); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes pt-float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(-1 * var(--pt-motion-float))); }
}

@keyframes pt-cta-glow {
  0%, 100% { box-shadow: 0 8px 18px color-mix(in srgb, var(--pt-accent) 28%, transparent); }
  50% { box-shadow: 0 12px 28px color-mix(in srgb, var(--pt-accent) calc(28% + 22% * var(--pt-motion-glow)), transparent); }
}

@keyframes pt-arrow-nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -2px); }
}

/* Glass shimmer on hover */

/* Ambient float on media (bounce / playful / cinematic) */

/* CTA glow pulse + press */

body.page-shell:not([data-motion="none"]) .section-cta:active,
body.page-shell:not([data-motion="none"]) .tile-cta:active,
body.page-shell:not([data-motion="none"]) .nav-tile a:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

/* Link arrow idle nudge on playful / bounce */

@media (prefers-reduced-motion: reduce) {
  body.page-shell {
    --pt-motion-duration: 0.01ms !important;
    --pt-motion-ease: linear !important;
    --pt-motion-lift: 0px !important;
    --pt-motion-scale: 1 !important;
    --pt-motion-zoom: 1 !important;
    --pt-motion-enter: 0s !important;
    --pt-motion-glow: 0 !important;
    --pt-motion-float: 0px !important;
    --pt-motion-shimmer: 0 !important;
  }

  body.page-shell .pt-grid > .pt-tile,
  body.page-shell .pt-grid .tile-cover,
  body.page-shell .section-cta,
  body.page-shell .tile-cta,
  body.page-shell .nav-tile a.is-primary,
  body.page-shell .link-card__arrow {
    animation: none !important;
  }

  body.page-shell .pt-grid > .pt-tile.pt-reveal {
    opacity: 1 !important;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--pt-sans);
  color: var(--pt-ink);
  background: color-mix(in srgb, var(--pt-accent) 55%, #fff);
}

body.page-shell {
  background-image: var(--pt-bg);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-color: var(--pt-bg-fallback, #1a1430);
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  color: var(--pt-ink);
  overflow-x: hidden;
}

body.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(12, 8, 18, var(--pt-overlay, 0.15));
}

body.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--pt-pattern-opacity, 0.45);
}

body.page-shell[data-pattern="dots"]::after {
  background-image: radial-gradient(rgba(255,255,255,0.55) 1px, transparent 1.15px);
  background-size: 22px 22px;
  opacity: var(--pt-pattern-opacity, 0.28);
}

body.page-shell[data-pattern="grid"]::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

body.page-shell[data-pattern="mesh"]::after {
  background-image:
    radial-gradient(at 20% 30%, rgba(124,92,255,0.35), transparent 45%),
    radial-gradient(at 80% 20%, rgba(56,189,248,0.28), transparent 40%),
    radial-gradient(at 60% 80%, rgba(244,114,182,0.25), transparent 45%);
  opacity: 0.85;
}

body.page-shell[data-pattern="ripple"]::after {
  background-image:
    repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,0.16) 0 2px, transparent 2px 28px);
  opacity: 0.4;
}

body.page-shell[data-pattern="diagonal"]::after {
  background-image: repeating-linear-gradient(
    -35deg,
    rgba(255,255,255,0.12) 0 2px,
    transparent 2px 14px
  );
  opacity: 0.35;
}

body.page-shell[data-pattern="noise"]::after {
  background-image:
    radial-gradient(rgba(255,255,255,0.42) 0.55px, transparent 0.65px),
    radial-gradient(rgba(0,0,0,0.22) 0.45px, transparent 0.55px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1.5px 2px;
  opacity: 0.32;
  mix-blend-mode: soft-light;
}

body.page-shell[data-pattern="none"]::after {
  display: none;
}

body.page-shell > * {
  position: relative;
  z-index: 1;
}

.pt-bg-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.pt-bg-row input {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.72);
  font: inherit;
  outline: none;
  min-width: 0;
}

.pt-bg-apply,
.pt-bg-clear {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--pt-ink);
  background: rgba(255,255,255,0.55);
}

.pt-bg-apply {
  background: var(--pt-ink);
  color: var(--pt-on-accent);
}

.pt-bg-clear {
  width: 100%;
  margin-bottom: 12px;
}

.pt-upload-label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.45);
  border: 1px dashed color-mix(in srgb, var(--pt-accent) 35%, transparent);
  cursor: pointer;
  margin-bottom: 8px !important;
  color: var(--pt-ink) !important;
}

.pt-upload-label input {
  display: none;
}

.pt-pattern-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pt-pattern-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,0.4);
  color: var(--pt-ink);
}

.pt-pattern-btn.active {
  background: var(--pt-ink);
  color: var(--pt-on-accent);
}

.glass {
  background: var(--pt-glass);
  backdrop-filter: blur(var(--pt-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--pt-blur)) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 40px rgba(55, 30, 100, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.pt-tile.glass {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 36px rgba(55, 30, 100, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.serif { font-family: var(--pt-serif); }

.pt-topbar {
  position: fixed;
  top: 16px;
  left: 20px;
  right: 20px;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.pt-topbar > * { pointer-events: auto; }

.pt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pt-ink);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.pt-pill--solid {
  background: var(--pt-ink);
  color: var(--pt-on-accent);
}

.pt-pill--solid:hover {
  filter: brightness(1.06);
}

button.pt-pill {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
}

.pt-share-pill {
  max-width: min(70vw, 320px);
}

.pt-share-pill > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-share-pill__hint {
  flex: 0 0 auto;
  opacity: 0.45;
  font-size: 12px;
  line-height: 1;
  margin-left: 2px;
}

.pt-share-pill:hover .pt-share-pill__hint {
  opacity: 0.9;
}

.pt-layout {
  display: block;
  max-width: var(--pt-layout-max, 980px);
  width: 100%;
  margin: 0 auto;
  /* Keep pad-top ≥ sticky top so sticky nav never jumps/overlaps on first paint */
  padding: calc(var(--pt-sticky-top) + 16px) clamp(10px, 2vw, 24px) 120px;
}

body.page-shell[data-density="compact"] .pt-layout {
  padding-top: calc(var(--pt-sticky-top) + 12px);
  padding-bottom: 88px;
}

.pt-utils {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pt-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--pt-ink);
  text-decoration: none;
  background: var(--pt-glass);
  backdrop-filter: blur(var(--pt-blur));
}

.pt-share {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  color: var(--pt-ink);
  background: var(--pt-glass);
  backdrop-filter: blur(var(--pt-blur));
}

.pt-editor-status {
  font-size: 12px;
  opacity: 0.85;
}

.pt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: var(--pt-row);
  gap: var(--pt-gap);
  align-content: start;
  min-height: 480px;
}

.pt-grid.is-editing .pt-tile {
  cursor: grab;
}

.pt-grid.is-editing .pt-tile-inner,
.pt-grid.is-editing .pt-tile-inner a,
.pt-grid.is-editing .pt-tile-inner button,
.pt-grid.is-editing .pt-tile-inner input {
  pointer-events: none;
  user-select: none;
}

/* Section lattice pieces must be interactive in edit mode */
.pt-grid.is-editing .pt-tile[data-type="section"] .pt-tile-inner,
.pt-grid.is-editing .pt-tile[data-type="section"] .section-frame,
.pt-grid.is-editing .pt-tile[data-type="section"] .section-canvas,
.pt-grid.is-editing .pt-tile[data-type="section"] .section-block,
.pt-grid.is-editing .pt-tile[data-type="section"] .section-block *,
.pt-grid.is-editing .pt-tile[data-type="section"] .section-add-bar,
.pt-grid.is-editing .pt-tile[data-type="section"] .section-add-bar *,
.pt-grid.is-editing .pt-tile[data-type="section"] .section-piece-chrome,
.pt-grid.is-editing .pt-tile[data-type="section"] .section-piece-chrome * {
  pointer-events: auto;
  user-select: none;
}

.pt-grid.is-editing .pt-tile[data-type="section"] .section-snap-lattice,
.pt-grid.is-editing .pt-tile[data-type="section"] .section-snap-lattice * {
  pointer-events: none !important;
}

body.pt-dragging {
  user-select: none !important;
  cursor: grabbing !important;
}

body.pt-dragging iframe {
  pointer-events: none !important;
}

.pt-tile-delete,
.pt-tile-edit {
  display: none;
}

.pt-chrome {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: visible;
}

.pt-chrome.is-arming,
.pt-chrome.is-arming *,
.section-piece-chrome.is-arming,
.section-piece-chrome.is-arming * {
  pointer-events: none !important;
}

.pt-chrome-del,
.pt-chrome-bar,
.pt-chrome-bar button,
.pt-handle {
  pointer-events: auto;
}

.pt-chrome-del {
  position: absolute;
  top: -14px;
  left: -10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pt-pink) 70%, #fff), var(--pt-pink));
  color: var(--pt-on-accent);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--pt-pink) 40%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pt-chrome-bar {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 5px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,170,205,0.92), rgba(240,113,165,0.88));
  box-shadow: 0 10px 28px rgba(200, 70, 130, 0.28);
  border: 1px solid rgba(255,255,255,0.28);
}

.pt-chrome-bar button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: color-mix(in srgb, var(--pt-ink) 75%, var(--pt-pink));
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pt-chrome-bar button:hover {
  background: rgba(255,255,255,0.35);
}

.pt-edit-panel {
  position: fixed;
  top: 72px;
  right: 20px;
  z-index: 60;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 160px);
  overflow: auto;
  border-radius: 24px;
  padding: 18px;
}

.pt-edit-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pt-edit-panel__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pt-muted);
  margin-bottom: 2px;
}

.pt-edit-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
  font-size: 20px;
  cursor: pointer;
  color: var(--pt-ink);
}

.pt-edit-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--pt-muted);
  margin: 10px 0 6px;
}

.pt-edit-form input[type="text"],
.pt-edit-form input[type="url"],
.pt-edit-form input[type="email"],
.pt-edit-form input[type="number"],
.pt-edit-form select,
.pt-edit-form textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.72);
  font: inherit;
  color: var(--pt-ink);
  outline: none;
}

.pt-edit-form textarea { resize: vertical; }

.pt-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600 !important;
  color: var(--pt-ink) !important;
}

.pt-edit-fields { margin-top: 4px; }

.pt-tone-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 10px;
}

.pt-tone-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 8px 4px 7px;
  border: 1.5px solid color-mix(in srgb, var(--pt-ink) 12%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--pt-glass) 70%, transparent);
  color: var(--pt-ink);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.pt-tone-swatch:hover {
  border-color: color-mix(in srgb, var(--pt-accent) 40%, transparent);
}

.pt-tone-swatch.active {
  border-color: var(--pt-pink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt-pink) 22%, transparent);
}

.pt-tone-swatch__chip {
  width: 100%;
  height: 18px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--pt-ink) 10%, transparent);
  background: var(--pt-glass);
}

.pt-tone-swatch[data-tone="default"] .pt-tone-swatch__chip { background: var(--pt-glass); }
.pt-tone-swatch[data-tone="cream"] .pt-tone-swatch__chip { background: var(--pt-tone-soft); }
.pt-tone-swatch[data-tone="pink"] .pt-tone-swatch__chip { background: var(--pt-tone-blush); }
.pt-tone-swatch[data-tone="tan"] .pt-tone-swatch__chip { background: var(--pt-tone-mist); }
.pt-tone-swatch[data-tone="lavender"] .pt-tone-swatch__chip { background: var(--pt-tone-accent-wash); }
.pt-tone-swatch[data-tone="frost"] .pt-tone-swatch__chip { background: var(--pt-tone-frost); }
.pt-tone-swatch[data-tone="sage"] .pt-tone-swatch__chip { background: var(--pt-tone-sage); }
.pt-tone-swatch[data-tone="coral"] .pt-tone-swatch__chip { background: var(--pt-tone-coral); }
.pt-tone-swatch[data-tone="sand"] .pt-tone-swatch__chip { background: var(--pt-tone-sand); }
.pt-tone-swatch[data-tone="slate"] .pt-tone-swatch__chip { background: var(--pt-tone-slate); }
.pt-tone-swatch[data-tone="rose"] .pt-tone-swatch__chip { background: var(--pt-tone-rose); }
.pt-tone-swatch[data-tone="quote"] .pt-tone-swatch__chip {
  background: var(--pt-tone-quote);
  box-shadow: inset 3px 0 0 var(--pt-accent);
}
.pt-tone-swatch[data-tone="mint"] .pt-tone-swatch__chip { background: var(--pt-tone-mint); }
.pt-tone-swatch[data-tone="sky"] .pt-tone-swatch__chip { background: var(--pt-tone-sky); }
.pt-tone-swatch[data-tone="ink"] .pt-tone-swatch__chip { background: var(--pt-tone-solid); }
.pt-tone-swatch[data-tone="contrast"] .pt-tone-swatch__chip { background: var(--pt-tone-contrast); }
.pt-tone-swatch[data-tone="alert"] .pt-tone-swatch__chip { background: var(--pt-accent); }

.pt-tone-picker--link .pt-tone-swatch[data-tone="pink"] .pt-tone-swatch__chip { background: var(--pt-tone-pink); }
.pt-tone-picker--link .pt-tone-swatch[data-tone="tan"] .pt-tone-swatch__chip { background: var(--pt-tone-tan); }
.pt-tone-picker--link .pt-tone-swatch[data-tone="lavender"] .pt-tone-swatch__chip { background: var(--pt-accent); }
.pt-tone-picker--link .pt-tone-swatch[data-tone="sage"] .pt-tone-swatch__chip { background: var(--pt-tone-sage-solid); }
.pt-tone-picker--link .pt-tone-swatch[data-tone="coral"] .pt-tone-swatch__chip { background: var(--pt-tone-coral-solid); }
.pt-tone-picker--link .pt-tone-swatch[data-tone="sand"] .pt-tone-swatch__chip { background: var(--pt-tone-sand-solid); }
.pt-tone-picker--link .pt-tone-swatch[data-tone="slate"] .pt-tone-swatch__chip { background: var(--pt-tone-slate-solid); }
.pt-tone-picker--link .pt-tone-swatch[data-tone="rose"] .pt-tone-swatch__chip { background: var(--pt-tone-rose-solid); }
.pt-tone-picker--link .pt-tone-swatch[data-tone="contrast"] .pt-tone-swatch__chip { background: var(--pt-tone-contrast); }

.pt-rating-picker {
  display: flex;
  gap: 2px;
  margin: 2px 0 10px;
}

.pt-rating-star {
  margin: 0;
  padding: 4px 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--pt-ink) 28%, transparent);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.pt-rating-star.active {
  color: var(--pt-accent);
}

.pt-rating-star:hover {
  color: color-mix(in srgb, var(--pt-accent) 70%, var(--pt-ink));
}

.pt-edit-goals {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.pt-edit-goal {
  display: grid;
  grid-template-columns: 1fr 64px 32px;
  gap: 6px;
  align-items: center;
}

.pt-edit-goal-del,
.pt-edit-add,
.pt-edit-cancel {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
}

.pt-edit-goal-del {
  width: 32px;
  height: 38px;
  background: var(--pt-danger-soft);
  color: var(--pt-danger);
}

.pt-edit-add {
  width: 100%;
  padding: 10px;
  background: rgba(255,255,255,0.55);
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.pt-edit-cancel {
  padding: 12px 14px;
  background: rgba(255,255,255,0.55);
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-toolbar-delete:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pt-toolbar button.pt-toolbar-delete:not(:disabled):hover {
  background: color-mix(in srgb, var(--pt-danger) 20%, transparent);
}

.pt-toolbar button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pt-tile {
  position: relative;
  border-radius: var(--pt-radius);
  overflow: hidden;
  min-height: 0;
  height: 100%;
  transition:
    box-shadow var(--pt-motion-duration) var(--pt-motion-ease),
    transform var(--pt-motion-duration) var(--pt-motion-ease),
    opacity var(--pt-motion-duration) var(--pt-motion-ease);
  /* size: edit + public share the same container queries / type scale */
  container-type: size;
  container-name: tile;
}

.pt-tile:hover { transform: none; }

.pt-tile.selected {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 18px 44px rgba(55, 30, 110, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.4);
  z-index: 12;
  overflow: visible;
}

.pt-tile.resizing,
.pt-tile.dragging {
  transition: none;
  user-select: none;
  z-index: 8;
  opacity: 0.98;
  box-shadow: 0 26px 56px rgba(55, 30, 110, 0.2);
}

.pt-tile.dragging {
  cursor: grabbing;
}

.pt-resize {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: block;
}

.pt-handle {
  pointer-events: auto;
  position: absolute;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: 50%;
  background: var(--pt-pink);
  box-shadow: 0 2px 8px rgba(240, 113, 165, 0.35);
  cursor: pointer;
}

.pt-handle:hover {
  transform: scale(1.15);
}

.pt-handle.n {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.pt-handle.s {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.pt-handle.e {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.pt-handle.w {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.pt-handle.n:hover,
.pt-handle.s:hover { transform: translateX(-50%) scale(1.15); }
.pt-handle.e:hover,
.pt-handle.w:hover { transform: translateY(-50%) scale(1.15); }

.pt-size-badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pt-pink) 92%, transparent);
  color: var(--pt-on-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.pt-tile.resizing .pt-size-badge {
  opacity: 1;
}

.pt-tile-inner {
  height: 100%;
  min-height: 0;
  padding: var(--pt-pad, 28px);
  display: flex;
  flex-direction: column;
}

.pt-tile[data-type="hero"] .pt-tile-inner,
.pt-tile[data-type="image"] .pt-tile-inner,
.pt-tile[data-type="map"] .pt-tile-inner,
.pt-tile[data-type="contact"] .pt-tile-inner {
  padding: 0;
}

.pt-tile[data-type="hero"] .pt-tile-inner,
.pt-tile[data-type="image"] .pt-tile-inner,
.pt-tile[data-type="map"] .pt-tile-inner {
  overflow: hidden;
  border-radius: inherit;
}

.pt-tile[data-type="link"] .pt-tile-inner {
  padding: 0;
}

.pt-tile[data-type="section"] .pt-tile-inner {
  padding: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.pt-tile[data-type="section"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden;
}

.pt-grid.is-editing .pt-tile[data-type="section"] {
  overflow: visible;
}

.pt-grid.is-editing .pt-tile[data-type="section"].selected .pt-tile-inner,
.pt-grid.is-editing .pt-tile[data-type="section"].selected .section-frame {
  overflow: visible;
}

.pt-tile[data-type="section"].selected {
  outline: none !important;
}

/* Edit mode: outline only when the section is selected */
.pt-grid.is-editing .pt-tile[data-type="section"].selected {
  background: color-mix(in srgb, var(--pt-glass) 80%, transparent) !important;
  border: 2px solid color-mix(in srgb, var(--pt-accent) 50%, var(--pt-pink)) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pt-pink) 20%, transparent) !important;
}

.section-frame {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(18px, 4cqh, 28px) clamp(20px, 4cqw, 36px);
  border-radius: var(--pt-radius);
  border: 1px solid color-mix(in srgb, var(--pt-ink) 14%, transparent);
  background: var(--pt-glass);
  backdrop-filter: blur(var(--pt-blur, 16px)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--pt-blur, 16px)) saturate(1.15);
  box-shadow: 0 12px 36px var(--pt-shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

/* Panel = the solid frame. Free-form pieces live on the lattice inside. */
.section-frame--panel {
  border-style: solid;
}

.section-frame--label {
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: clamp(4px, 1.2cqh, 10px) 4px;
  min-height: 0;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.section-frame--label .section-heading {
  font-family: var(--pt-sans);
  font-size: clamp(1.35rem, 3.8cqw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding-block: 0;
  line-height: 1.15;
}

.section-frame--label .section-sub {
  font-family: var(--pt-sans);
  font-size: clamp(0.88rem, 2.3cqw, 1rem);
  font-weight: 450;
  color: color-mix(in srgb, var(--pt-muted) 35%, var(--pt-ink) 65%);
  line-height: 1.45;
  margin-top: 6px;
  max-width: 36rem;
}

.section-frame--hero {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-style: solid;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 18px 48px rgba(40, 20, 50, 0.12);
  padding: clamp(28px, 6cqh, 48px) clamp(24px, 5cqw, 48px);
}

.section-frame--hero .section-eyebrow {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: clamp(0.78rem, 2cqw, 0.9rem);
  font-weight: 600;
  color: color-mix(in srgb, var(--pt-accent) 70%, var(--pt-ink));
}

.section-frame--hero .section-heading {
  font-size: clamp(2.15rem, 6.2cqw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
  padding-block: 0.04em;
}

.section-frame--hero .section-sub {
  font-family: var(--pt-sans);
  font-size: clamp(1.02rem, 2.7cqw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 28rem;
  color: color-mix(in srgb, var(--pt-ink) 78%, var(--pt-muted) 22%);
}

.section-frame--hero.section-frame--center .section-sub {
  margin-inline: auto;
}

.section-frame--hero.section-frame--left .section-block .section-cta-row,
.section-frame--hero.section-frame--left .section-block:has(> .section-cta) {
  justify-content: flex-start;
}

.section-frame--hero .section-block:has(> .section-heading) {
  justify-content: flex-end;
  padding-bottom: 2px;
}

.section-frame--hero .section-block:has(> .section-sub) {
  justify-content: flex-start;
  padding-top: 4px;
}

.section-frame--hero .section-block:has(> .section-eyebrow) {
  justify-content: flex-end;
}

/* Content-driven tint (tint: accent | ink) — loud section frames */
.section-frame--tint-accent {
  background: color-mix(in srgb, var(--pt-accent) 88%, var(--pt-ink));
  border-color: transparent;
  box-shadow: 0 22px 56px color-mix(in srgb, var(--pt-accent) 40%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Solid dark surface (bg), not text ink — works on light + midnight themes */
.section-frame--tint-ink {
  background: color-mix(in srgb, var(--pt-bg-fallback) 88%, #000 12%);
  border-color: color-mix(in srgb, var(--pt-ink) 14%, transparent);
  box-shadow: 0 22px 56px var(--pt-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.section-frame--tint-accent .section-heading,
.section-frame--tint-accent .section-sub,
.section-frame--tint-accent .section-eyebrow {
  color: var(--pt-on-accent);
}
.section-frame--tint-ink .section-heading,
.section-frame--tint-ink .section-sub,
.section-frame--tint-ink .section-eyebrow {
  color: var(--pt-ink);
}
.section-frame--tint-accent .section-sub,
.section-frame--tint-accent .section-eyebrow {
  color: rgba(255, 255, 255, 0.82);
}
.section-frame--tint-ink .section-sub,
.section-frame--tint-ink .section-eyebrow {
  color: color-mix(in srgb, var(--pt-ink) 72%, var(--pt-muted) 28%);
}
.section-frame--tint-accent .section-cta--primary {
  background: var(--pt-on-accent);
  color: color-mix(in srgb, var(--pt-accent) 80%, var(--pt-ink));
}
.section-frame--tint-ink .section-cta--primary {
  background: var(--pt-ink);
  color: var(--pt-bg-fallback);
}
.section-frame--tint-accent .section-cta--ghost {
  background: color-mix(in srgb, var(--pt-on-accent) 88%, transparent);
  color: var(--pt-ink);
  border: 1.5px solid color-mix(in srgb, var(--pt-on-accent) 55%, transparent);
}
.section-frame--tint-ink .section-cta--ghost {
  background: color-mix(in srgb, var(--pt-ink) 12%, transparent);
  color: var(--pt-ink);
  border: 1.5px solid color-mix(in srgb, var(--pt-ink) 28%, transparent);
}

.section-frame__inner {
  width: 100%;
  max-width: 100%;
}

.section-canvas {
  display: grid;
  grid-template-columns: repeat(var(--section-cols, 6), minmax(0, 1fr));
  grid-template-rows: repeat(var(--section-rows, 4), minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  align-content: stretch;
  justify-items: stretch;
  align-items: stretch;
  position: relative;
  box-sizing: border-box;
}

.section-snap-lattice {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--section-cols, 6), minmax(0, 1fr));
  grid-template-rows: repeat(var(--section-rows, 4), minmax(0, 1fr));
  gap: 6px;
  pointer-events: none;
  z-index: 0;
}

.section-snap-cell {
  border-radius: 8px;
  border: 1px dashed var(--pt-line);
  background:
    radial-gradient(circle at center, rgba(240, 113, 165, 0.45) 0 2px, transparent 2.5px),
    rgba(255, 255, 255, 0.12);
  background-repeat: no-repeat;
  background-position: center, 0 0;
}

.section-canvas > .section-block {
  /* Default; inline z-index from piece.z wins when set */
  z-index: 1;
}

.section-frame--left {
  justify-content: flex-start;
  text-align: left;
}

.section-frame--center {
  justify-content: center;
  text-align: center;
}

.section-frame--right {
  justify-content: flex-end;
  text-align: right;
}

.section-eyebrow {
  margin: 0;
  font-family: var(--pt-sans);
  font-size: clamp(0.68rem, 1.7cqw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: color-mix(in srgb, var(--pt-accent) 75%, var(--pt-ink));
}

.section-heading {
  margin: 0;
  max-width: 100%;
  font-family: var(--pt-serif);
  font-size: clamp(1.6rem, 4.8cqw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--pt-ink);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  /* Serif display glyphs clip when the piece is overflow:hidden */
  padding-block: 0.08em;
}

.section-sub {
  margin: 0;
  color: var(--pt-muted);
  font-size: clamp(0.85rem, 2.4cqw, 1.05rem);
  line-height: 1.45;
  max-width: 100%;
}

/* Per-piece type scale (heading / text / eyebrow) */
.section-heading.section-type-size-sm { font-size: clamp(1.15rem, 3.2cqw, 1.55rem); }
.section-heading.section-type-size-md { font-size: clamp(1.6rem, 4.8cqw, 2.4rem); }
.section-heading.section-type-size-lg { font-size: clamp(2rem, 5.6cqw, 2.9rem); }
.section-heading.section-type-size-xl { font-size: clamp(2.45rem, 6.8cqw, 3.5rem); }

.section-sub.section-type-size-sm { font-size: clamp(0.78rem, 2cqw, 0.92rem); }
.section-sub.section-type-size-md { font-size: clamp(0.85rem, 2.4cqw, 1.05rem); }
.section-sub.section-type-size-lg { font-size: clamp(1rem, 2.8cqw, 1.2rem); }
.section-sub.section-type-size-xl { font-size: clamp(1.12rem, 3.2cqw, 1.35rem); }

.section-eyebrow.section-type-size-sm { font-size: clamp(0.58rem, 1.4cqw, 0.68rem); }
.section-eyebrow.section-type-size-md { font-size: clamp(0.68rem, 1.7cqw, 0.78rem); }
.section-eyebrow.section-type-size-lg { font-size: clamp(0.78rem, 2cqw, 0.9rem); }
.section-eyebrow.section-type-size-xl { font-size: clamp(0.88rem, 2.3cqw, 1rem); }

.section-frame--hero .section-heading.section-type-size-sm { font-size: clamp(1.45rem, 4cqw, 2rem); }
.section-frame--hero .section-heading.section-type-size-md { font-size: clamp(2.15rem, 6.2cqw, 3.35rem); }
.section-frame--hero .section-heading.section-type-size-lg { font-size: clamp(2.5rem, 7cqw, 3.75rem); }
.section-frame--hero .section-heading.section-type-size-xl { font-size: clamp(2.9rem, 8cqw, 4.25rem); }

.section-frame--hero .section-sub.section-type-size-sm { font-size: clamp(0.9rem, 2.2cqw, 1.05rem); }
.section-frame--hero .section-sub.section-type-size-md { font-size: clamp(1.02rem, 2.7cqw, 1.2rem); }
.section-frame--hero .section-sub.section-type-size-lg { font-size: clamp(1.12rem, 3cqw, 1.35rem); }
.section-frame--hero .section-sub.section-type-size-xl { font-size: clamp(1.22rem, 3.4cqw, 1.5rem); }

/* Labels / panels: size knobs stay relative to the variant — never jump to hero display scale */
.section-frame--label .section-heading.section-type-size-sm { font-size: clamp(1.15rem, 3.2cqw, 1.45rem); }
.section-frame--label .section-heading.section-type-size-md { font-size: clamp(1.35rem, 3.8cqw, 1.75rem); }
.section-frame--label .section-heading.section-type-size-lg { font-size: clamp(1.5rem, 4.2cqw, 1.95rem); }
.section-frame--label .section-heading.section-type-size-xl { font-size: clamp(1.65rem, 4.6cqw, 2.15rem); }

.section-frame--panel .section-heading.section-type-size-sm { font-size: clamp(1rem, 2.6cqw, 1.2rem); }
.section-frame--panel .section-heading.section-type-size-md { font-size: clamp(1.12rem, 3cqw, 1.35rem); }
.section-frame--panel .section-heading.section-type-size-lg { font-size: clamp(1.25rem, 3.4cqw, 1.5rem); }
.section-frame--panel .section-heading.section-type-size-xl { font-size: clamp(1.35rem, 3.8cqw, 1.65rem); }

/* Step / utility panels: denser, tool-like type */
.section-frame--panel .section-eyebrow {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.section-frame--panel .section-heading {
  font-family: var(--pt-sans);
  font-size: clamp(1.12rem, 3cqw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  padding-block: 0;
  line-height: 1.25;
}

.section-frame--panel .section-sub {
  font-family: var(--pt-sans);
  font-size: clamp(0.86rem, 2.2cqw, 0.98rem);
  font-weight: 450;
  line-height: 1.5;
  color: color-mix(in srgb, var(--pt-muted) 38%, var(--pt-ink) 62%);
}

/* Stacked step columns: number sits above title, body breathes below */
.section-frame--panel .section-block:has(> .section-eyebrow) {
  justify-content: flex-end;
  padding-bottom: 2px;
}

.section-frame--panel .section-block:has(> .section-heading) {
  justify-content: center;
}

.section-frame--panel .section-block:has(> .section-sub) {
  justify-content: flex-start;
  padding-top: 4px;
}

.section-frame--panel .section-block .section-eyebrow,
.section-frame--panel .section-block .section-heading,
.section-frame--panel .section-block .section-sub {
  padding-inline: 2px;
}

.section-block {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  align-self: stretch;
  justify-self: stretch;
}

/* Text pieces need room for ascenders/descenders; media stays clipped */
.section-block:has(> .section-heading),
.section-block:has(> .section-sub),
.section-block:has(> .section-eyebrow) {
  overflow: visible;
}

.section-frame--left .section-block { align-items: stretch; text-align: left; }
.section-frame--center .section-block { align-items: stretch; text-align: center; }
.section-frame--right .section-block { align-items: stretch; text-align: right; }

.section-block .section-heading,
.section-block .section-sub,
.section-block .section-eyebrow,
.section-block .section-cta-row,
.section-block .section-media,
.section-block .section-divider,
.section-block .section-spacer {
  width: 100%;
  max-width: 100%;
}

.section-block .section-heading,
.section-block .section-sub,
.section-block .section-eyebrow {
  padding: 4px 6px;
  box-sizing: border-box;
}

.section-block .section-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  height: 100%;
  width: 100%;
}

.section-block .section-cta-row .section-cta {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.section-frame--center .section-block .section-cta-row { justify-content: center; }
.section-frame--right .section-block .section-cta-row { justify-content: flex-end; }

.section-block .section-media {
  height: 100%;
  margin: 0;
}

.section-block .section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.section-frame.is-editing-live {
  height: 100%;
  min-height: 100%;
  padding: clamp(14px, 3.5cqh, 24px) clamp(14px, 3.5cqw, 28px);
  overflow: visible;
}

/* Keep the panel visible while editing — lattice is free-form inside it. */
.section-frame.is-editing-live.section-frame--panel {
  border: 1px solid color-mix(in srgb, var(--pt-ink) 18%, transparent);
  background: var(--pt-glass);
  backdrop-filter: blur(var(--pt-blur, 16px)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--pt-blur, 16px)) saturate(1.15);
  box-shadow: 0 12px 36px var(--pt-shadow);
}
.section-frame.is-editing-live.section-frame--panel.section-frame--tint-ink {
  background: color-mix(in srgb, var(--pt-bg-fallback) 88%, #000 12%);
  border-color: color-mix(in srgb, var(--pt-ink) 14%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.section-frame.is-editing-live.section-frame--panel.section-frame--tint-accent {
  background: color-mix(in srgb, var(--pt-accent) 88%, var(--pt-ink));
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section-frame.is-editing-live.section-frame--label {
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: clamp(8px, 2cqh, 14px) 4px;
}

.section-frame.is-editing-live.section-frame--hero {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* Canvas edit chrome: pieces fill lattice cells exactly */
.section-frame.is-canvas .section-block {
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  background: color-mix(in srgb, var(--pt-glass) 70%, transparent);
  cursor: grab;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.section-frame.is-canvas .section-block:hover {
  border-color: color-mix(in srgb, var(--pt-pink) 45%, transparent);
  background: var(--pt-glass);
}

.section-frame.is-canvas .section-block.is-focused {
  border-style: solid;
  border-color: var(--pt-pink);
  background: var(--pt-glass);
  box-shadow: none;
  z-index: 5;
  overflow: visible; /* handles sit on edges */
}

.section-frame.is-canvas .section-block.is-dragging,
.section-frame.is-canvas .section-block.is-resizing {
  opacity: 1;
  cursor: grabbing;
  z-index: 6;
  transition: none;
}

.section-block .section-cta {
  width: 100%;
  height: 100%;
  min-height: 0;
  justify-content: center;
  box-sizing: border-box;
  border-radius: max(0px, calc(var(--pt-radius) * 0.35));
  align-self: stretch;
}

.section-block:has(> .section-cta),
.section-block.is-type-button {
  align-items: stretch;
  justify-content: stretch;
}

/* Site density: pill CTAs that still fill the lattice cell */
body.page-shell[data-density="site"] .section-block .section-cta {
  border-radius: 999px;
  padding: 0.55em 1.15em;
}

/* Sticky nav must not cover the hero while editing */
.pt-grid.is-editing .pt-tile[data-type="nav"].is-sticky-nav {
  position: relative;
  top: auto;
}

.section-piece-chrome {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: visible;
}

.section-piece-del,
.section-piece-bar,
.section-handle {
  pointer-events: auto;
}

.section-piece-del {
  position: absolute;
  top: -14px;
  left: -10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pt-accent) 40%, #fff), var(--pt-accent));
  color: var(--pt-on-accent);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--pt-accent) 40%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
}

.section-piece-del:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.section-piece-bar__del {
  margin-left: 2px;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--pt-accent) 12%, transparent) !important;
  color: var(--pt-accent) !important;
  font-size: 10px !important;
  font-weight: 750 !important;
}

.section-piece-bar__del:hover {
  background: color-mix(in srgb, var(--pt-accent) 20%, transparent) !important;
}

.pt-piece-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pt-piece-z,
.pt-piece-delete {
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.7);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--pt-ink);
}

.pt-piece-delete {
  border-color: color-mix(in srgb, var(--pt-accent) 25%, transparent);
  background: color-mix(in srgb, var(--pt-accent) 10%, transparent);
  color: var(--pt-accent);
  margin-left: auto;
}

.section-piece-bar {
  position: absolute;
  left: 50%;
  bottom: -44px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,170,205,0.92), rgba(240,113,165,0.88));
  box-shadow: 0 10px 28px rgba(200, 70, 130, 0.28);
  border: 1px solid rgba(255,255,255,0.28);
  z-index: 9;
}

.section-piece-bar button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: color-mix(in srgb, var(--pt-ink) 75%, var(--pt-pink));
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-piece-bar button:hover {
  background: rgba(255,255,255,0.35);
}

.section-piece-size {
  font-size: 11px;
  font-weight: 700;
  color: color-mix(in srgb, var(--pt-ink) 75%, var(--pt-pink));
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 0 6px;
}

.section-block__chrome {
  display: none;
}

.section-resize {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.section-handle {
  pointer-events: auto;
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--pt-on-accent);
  background: var(--pt-pink);
  box-shadow: 0 2px 8px rgba(40, 20, 50, 0.22);
  padding: 0;
  cursor: pointer;
  z-index: 13;
}

.section-handle::before {
  content: '';
  position: absolute;
  inset: -10px;
}

.section-handle.n {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.section-handle.s {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.section-handle.e {
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.section-handle.w {
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.section-handle.ne {
  top: -8px;
  right: -8px;
  cursor: nesw-resize;
}

.section-handle.nw {
  top: -8px;
  left: -8px;
  cursor: nwse-resize;
}

.section-handle.se {
  bottom: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background: color-mix(in srgb, var(--pt-pink) 85%, var(--pt-ink));
}

.section-handle.sw {
  bottom: -8px;
  left: -8px;
  cursor: nesw-resize;
}

.section-handle:hover {
  transform: translateX(-50%) scale(1.2);
}

.section-handle.e:hover,
.section-handle.w:hover {
  transform: translateY(-50%) scale(1.2);
}

.section-handle.ne:hover,
.section-handle.nw:hover,
.section-handle.se:hover,
.section-handle.sw:hover {
  transform: scale(1.2);
}

.section-canvas-hint {
  display: none;
}

.pt-piece.is-dragging {
  opacity: 0.45;
}

.pt-piece__layout {
  display: block;
  font-size: 10px;
  color: var(--pt-muted);
  font-variant-numeric: tabular-nums;
}

.section-media {
  margin: 6px 0 0;
  width: 100%;
  max-width: 28rem;
}

.section-media img {
  display: block;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  max-height: 220px;
}

.section-media figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--pt-muted);
}

.section-media--circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  max-width: none;
  height: 100%;
}

.section-media--circle img {
  width: min(88px, 70%);
  height: min(88px, 70%);
  max-height: none;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, #fff 72%, transparent);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--pt-ink) 12%, transparent);
  object-fit: cover;
}

.section-frame.is-canvas .section-block:has(> .section-media--circle) {
  background: transparent;
  border-color: transparent;
}

.section-frame--center .section-block:has(> .section-media--circle) {
  align-items: center;
}

.section-frame--panel.section-frame--center .section-heading {
  font-family: var(--pt-serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: center;
}

.section-frame--panel.section-frame--center .section-sub {
  text-align: center;
}

/* Testimonial sections: star row + attribution */
.section-frame--panel.section-frame--center .section-block:has(> .section-sub.section-type-size-sm):first-child .section-sub,
.section-frame--panel.section-frame--center .section-canvas > .section-block:first-child .section-sub {
  color: var(--pt-accent);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 600;
}

.section-frame--panel.section-frame--center .section-canvas > .section-block:last-child .section-sub {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--pt-muted) 45%, var(--pt-ink) 55%);
}

.section-divider {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.35);
  margin: 4px 0;
}

.section-spacer { width: 100%; flex: 0 0 auto; }
.section-spacer--sm { height: 8px; }
.section-spacer--md { height: 18px; }
.section-spacer--lg { height: 32px; }

.section-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.section-frame--center .section-cta-row { justify-content: center; }

.section-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7em 1.1em;
  border-radius: max(0px, calc(var(--pt-radius) * 0.35));
  background: var(--pt-accent);
  color: var(--pt-on-accent);
  font-size: clamp(13px, 2.6cqw + 8px, 15px);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pt-accent) 30%, transparent);
  transition:
    transform var(--pt-motion-duration) var(--pt-motion-ease),
    filter var(--pt-motion-duration) var(--pt-motion-ease),
    background var(--pt-motion-duration) ease;
}

.section-cta--primary {
  background: var(--pt-accent);
  color: var(--pt-on-accent);
  border: none;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pt-accent) 30%, transparent);
}

.section-cta--ghost {
  background: var(--pt-glass);
  color: var(--pt-ink);
  box-shadow: none;
  border: 1.5px solid color-mix(in srgb, var(--pt-ink) 16%, transparent);
  border-radius: max(0px, calc(var(--pt-radius) * 0.35));
}

.section-cta--link {
  background: transparent;
  color: var(--pt-ink);
  box-shadow: none;
  border: none;
  padding-left: 0.4em;
  padding-right: 0.4em;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
  min-height: 0;
}

.section-cta--link:hover {
  filter: none;
  opacity: 0.75;
}

.section-add-bar {
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.section-add-bar__toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(40, 30, 50, 0.14);
  color: var(--pt-ink);
  font: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.section-add-bar__toggle:hover {
  background: var(--pt-site-panel);
  border-color: color-mix(in srgb, var(--pt-pink) 45%, rgba(40, 50, 60, 0.2));
  color: color-mix(in srgb, var(--pt-pink) 70%, var(--pt-ink));
}

.section-add-bar__menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--pt-line);
  box-shadow: 0 10px 28px rgba(40, 30, 50, 0.16);
}

.section-add-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--pt-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.section-add-bar__btn:hover {
  background: color-mix(in srgb, var(--pt-accent) 14%, rgba(255,255,255,0.9));
}

.section-add-bar__close {
  color: var(--pt-muted);
  font-size: 18px;
  font-weight: 500;
}

.pt-btn-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.pt-btn-editor__row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.45);
}

.pt-btn-editor__row input[type="text"] {
  width: 100%;
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  background: rgba(255,255,255,0.75);
  color: var(--pt-ink);
}

.pt-btn-editor__flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pt-btn-editor__flags select {
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  padding: 6px 8px;
  font: inherit;
  font-size: 12px;
  background: rgba(255,255,255,0.75);
  color: var(--pt-ink);
}

.section-cta:hover {
  filter: brightness(1.06);
  transform: translateY(calc(-0.35 * var(--pt-motion-lift)));
}
.section-cta--ghost:hover { filter: none; background: color-mix(in srgb, var(--pt-glass) 70%, var(--pt-site-panel)); }
.section-cta--link:hover { filter: none; opacity: 0.75; transform: none; }

/* Nav widget (grid tile) */
.pt-tile[data-type="nav"].is-sticky-nav {
  position: sticky;
  top: var(--pt-sticky-top, 72px);
  z-index: 36;
}

.pt-grid.is-editing .pt-tile[data-type="nav"].is-sticky-nav {
  z-index: 30;
}

@media (max-width: 900px) {
  :root {
    --pt-sticky-top: 64px;
  }

  .pt-tile[data-type="nav"].is-sticky-nav {
    top: var(--pt-sticky-top, 64px);
  }
}

.pt-tile[data-type="nav"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible;
}

.pt-grid.is-editing .pt-tile[data-type="nav"].selected {
  background: rgba(255, 255, 255, 0.24) !important;
  border: 2px solid color-mix(in srgb, var(--pt-accent) 50%, var(--pt-pink)) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pt-pink) 20%, transparent) !important;
  outline: none !important;
}

.pt-tile[data-type="nav"] .pt-tile-inner {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-tile {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-tile--left { justify-content: flex-start; }
.nav-tile--center { justify-content: center; }
.nav-tile--right { justify-content: flex-end; }

.nav-tile--left .nav-tile__inner {
  width: 100%;
  justify-content: flex-start;
}

.nav-tile__inner {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: center;
  padding: 6px 8px;
  border-radius: var(--pt-radius);
  background: var(--pt-glass);
  border: 1px solid color-mix(in srgb, var(--pt-ink) 10%, transparent);
  backdrop-filter: blur(var(--pt-blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--pt-blur)) saturate(1.25);
  box-shadow:
    0 8px 20px color-mix(in srgb, var(--pt-ink) 8%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent);
  color: var(--pt-ink);
  font-family: var(--pt-sans);
}

body.page-shell[data-density="compact"] .nav-tile a {
  padding: 6px 10px;
  font-size: 12px;
}

body.page-shell[data-density="compact"] .pt-tile.glass {
  box-shadow:
    0 3px 10px color-mix(in srgb, var(--pt-ink) 5%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.page-shell[data-density="compact"] .text-card {
  gap: 5px;
}

/* Compact: fit type to the cell — do not override container queries with oversized rem */
body.page-shell[data-density="compact"] .text-card__heading {
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 500;
  -webkit-line-clamp: 3;
}

body.page-shell[data-density="compact"] .text-card__body {
  font-size: 0.84rem;
  line-height: 1.35;
  -webkit-line-clamp: 3;
  color: color-mix(in srgb, var(--pt-muted) 28%, var(--pt-ink) 72%);
}

body.page-shell[data-density="compact"] .text-card__byline {
  margin-top: 0;
  font-size: 0.7rem;
}

/* One-row news / tip cells: title + dek must fit without mid-glyph clip */
body.page-shell[data-density="compact"] .pt-tile[data-type="text"][data-rows="1"] .text-card__heading {
  font-size: 0.92rem;
  line-height: 1.22;
  -webkit-line-clamp: 2;
}

body.page-shell[data-density="compact"] .pt-tile[data-type="text"][data-rows="1"] .text-card__body {
  font-size: 0.76rem;
  line-height: 1.3;
  -webkit-line-clamp: 2;
}

body.page-shell[data-density="compact"] .pt-tile[data-type="text"][data-rows="1"] .text-card__byline {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

body.page-shell[data-density="compact"] .text-card--tone-quote .text-card__byline {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.7rem;
}

body.page-shell[data-density="compact"] .text-card--tone-quote .text-card__heading {
  font-size: 1.05rem;
  -webkit-line-clamp: 3;
}

body.page-shell[data-density="compact"] .newsletter-card__heading {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

body.page-shell[data-density="compact"] .newsletter-card__body {
  font-size: 0.95rem;
  line-height: 1.5;
}

body.page-shell[data-density="compact"] .profile-card__name {
  font-size: clamp(1.4rem, 2.2vw, 1.65rem);
}

/* Quieter social CTAs — less “app button”, more page chrome */
body.page-shell[data-density="compact"] .social-card__footer .tile-cta {
  background: var(--pt-ink);
  color: var(--pt-on-accent);
  box-shadow: none;
}

body.page-shell[data-density="compact"] .text-card--plain {
  justify-content: flex-start;
  gap: 6px;
  padding-block: 4px;
}

/* Tall plain status cards: center the statement so empty lattice doesn't look broken */
body.page-shell[data-density="compact"] .pt-tile[data-type="text"][data-rows="2"] .text-card--plain {
  justify-content: center;
  padding-block: 20px;
  gap: 8px;
}

body.page-shell[data-density="compact"] .section-frame--label {
  padding: 2px 2px 6px;
}

body.page-shell[data-density="compact"] .section-frame--label .section-heading,
body.page-shell[data-density="compact"] .section-frame--label .section-heading.section-type-size-sm,
body.page-shell[data-density="compact"] .section-frame--label .section-heading.section-type-size-md,
body.page-shell[data-density="compact"] .section-frame--label .section-heading.section-type-size-lg {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.page-shell[data-density="compact"] .section-frame--label .section-sub {
  font-size: 0.95rem;
  margin-top: 4px;
}

body.page-shell[data-density="compact"] .section-frame--panel .section-heading,
body.page-shell[data-density="compact"] .section-frame--panel .section-heading.section-type-size-sm,
body.page-shell[data-density="compact"] .section-frame--panel .section-heading.section-type-size-md,
body.page-shell[data-density="compact"] .section-frame--panel .section-heading.section-type-size-lg,
body.page-shell[data-density="compact"] .section-frame--panel .section-heading.section-type-size-xl {
  font-family: var(--pt-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

body.page-shell[data-density="compact"] .section-frame--panel .section-sub,
body.page-shell[data-density="compact"] .section-frame--panel .section-block .section-sub {
  font-size: 0.95rem;
  font-weight: 450;
}

body.page-shell[data-density="compact"] .contact-bar {
  font-size: 1rem;
}

body.page-shell[data-density="compact"] .contact-bar__text strong {
  font-weight: 650;
}

body.page-shell[data-density="compact"] .nav-tile a {
  font-size: 14px;
  padding: 10px 14px;
}

body.page-shell[data-density="compact"] .section-frame--hero {
  padding: 22px 24px;
}

body.page-shell[data-density="compact"] .section-frame--hero .section-heading {
  font-size: clamp(1.85rem, 5cqw, 2.75rem);
}

body.page-shell[data-density="compact"] .section-frame--hero .section-sub {
  font-size: clamp(0.92rem, 2.4cqw, 1.05rem);
}

body.page-shell[data-density="compact"] .section-frame--panel {
  padding: 10px 12px;
}

body.page-shell[data-density="compact"] .text-card--plain {
  justify-content: flex-start;
  gap: 4px;
  padding-block: 2px;
}

body.page-shell[data-density="compact"] .pt-tile[data-type="text"][data-rows="1"] .text-card--plain {
  justify-content: center;
}

body.page-shell[data-density="compact"] .text-card__byline {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Short text cells across all densities */
.pt-tile[data-type="text"][data-rows="1"] .text-card {
  gap: 4px;
}

.pt-tile[data-type="text"][data-rows="1"] .text-card__heading {
  font-size: clamp(0.9rem, 2.6cqw, 1.12rem);
  -webkit-line-clamp: 2;
  line-height: 1.22;
}

.pt-tile[data-type="text"][data-rows="1"] .text-card__body {
  font-size: clamp(0.76rem, 2cqw, 0.9rem);
  line-height: 1.3;
  -webkit-line-clamp: 2;
}

.pt-tile[data-type="text"] .pt-tile-inner {
  min-height: 0;
  overflow: hidden;
}

.nav-tile a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--pt-radius);
  text-decoration: none;
  color: var(--pt-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: transparent;
  font-family: inherit;
  transition: background var(--pt-motion-duration) var(--pt-motion-ease), color var(--pt-motion-duration) var(--pt-motion-ease), filter var(--pt-motion-duration) var(--pt-motion-ease);
}

.nav-tile a:hover {
  background: color-mix(in srgb, var(--pt-accent) 14%, transparent);
  color: var(--pt-ink);
}

.nav-tile a.is-primary {
  background: var(--pt-accent);
  color: var(--pt-on-accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pt-accent) 30%, transparent);
}

.nav-tile a.is-primary:hover {
  filter: brightness(1.06);
  background: var(--pt-accent);
  color: var(--pt-on-accent);
}

.nav-tile__empty {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pt-muted);
  font-style: italic;
}

/* Legacy sticky page-nav (unused; kept harmless) */
.pt-page-nav {
  position: sticky;
  top: 72px;
  z-index: 40;
  display: flex;
  justify-content: center;
  margin: 0 auto 18px;
  max-width: 980px;
  padding: 0 28px;
  pointer-events: none;
}

.pt-page-nav__inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px;
  border-radius: var(--pt-radius);
  background: var(--pt-glass);
  border: 1px solid color-mix(in srgb, var(--pt-ink) 10%, transparent);
  backdrop-filter: blur(var(--pt-blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--pt-blur)) saturate(1.25);
  box-shadow:
    0 12px 32px color-mix(in srgb, var(--pt-ink) 12%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent);
  color: var(--pt-ink);
  font-family: var(--pt-sans);
}

.pt-page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--pt-radius);
  text-decoration: none;
  color: var(--pt-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: transparent;
  font-family: inherit;
  transition: background var(--pt-motion-duration) var(--pt-motion-ease), color var(--pt-motion-duration) var(--pt-motion-ease), filter var(--pt-motion-duration) var(--pt-motion-ease);
}

.pt-page-nav a:hover {
  background: color-mix(in srgb, var(--pt-accent) 14%, transparent);
  color: var(--pt-ink);
}

.pt-page-nav a.is-primary {
  background: var(--pt-accent);
  color: var(--pt-on-accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pt-accent) 30%, transparent);
}

.pt-page-nav a.is-primary:hover {
  filter: brightness(1.06);
  background: var(--pt-accent);
  color: var(--pt-on-accent);
}

.pt-tile[id] {
  scroll-margin-top: 140px;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 900px) {
  .pt-page-nav {
    top: 64px;
    padding: 0 16px;
    margin-bottom: 12px;
  }
  .pt-page-nav a { padding: 9px 12px; font-size: 12px; }
  .pt-tile[id] { scroll-margin-top: 120px; }
}

/* Profile — keep type readable; never let avatar eat the name */
.profile-card {
  gap: 12px;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 0;
  overflow: visible;
}

.profile-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.72);
  box-shadow: 0 10px 22px rgba(40, 30, 60, 0.12);
  flex: 0 0 auto;
  background: var(--pt-accent);
}

.profile-card__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  align-items: center;
}

.profile-card__name {
  margin: 0;
  font-family: var(--pt-serif);
  font-size: clamp(1.55rem, 3.8cqw, 1.95rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--pt-ink);
}

.profile-card__subtitle {
  margin: 0;
  color: var(--pt-muted);
  font-size: clamp(1rem, 2.2cqw, 1.1rem);
  line-height: 1.35;
  font-weight: 500;
}

.profile-card__bio {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: auto;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: 16rem;
}

.profile-card__bio li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.9rem, 2.2cqw, 1rem);
  color: var(--pt-ink);
  min-width: 0;
}

.profile-card__emoji {
  flex: 0 0 auto;
  width: 1.4em;
  text-align: center;
}

@container tile (min-width: 320px) and (min-height: 240px) {
  .profile-card__avatar {
    width: 88px;
    height: 88px;
  }
  .profile-card__name {
    font-size: clamp(1.5rem, 4cqw, 1.9rem);
  }
}

@container tile (max-height: 160px) {
  .profile-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
  }
  .profile-card__copy { align-items: flex-start; }
  .profile-card__avatar {
    width: 56px;
    height: 56px;
  }
  .profile-card__bio { display: none; }
}

.pt-tile[data-type="profile"] .pt-tile-inner {
  overflow: visible;
}

.hero-media {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  position: relative;
  background: rgba(255,255,255,0.22);
}

.hero-media__fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pt-accent) 35%, #2a2030), color-mix(in srgb, var(--pt-ink) 55%, #6080a0)),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), transparent 55%);
  z-index: 0;
}

.hero-media .tile-cover {
  position: relative;
  z-index: 1;
}

.hero-media .tile-cover.is-broken {
  display: none;
}

.media-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 236, 228, 0.92);
  color: var(--pt-ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(60, 30, 20, 0.14);
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-tile[data-type="image"],
.pt-tile[data-type="hero"] {
  background: rgba(255,255,255,0.12) !important;
  box-shadow:
    0 16px 40px rgba(55, 30, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.pt-tile[data-type="image"]:hover .tile-cover,
.pt-tile[data-type="hero"]:hover .tile-cover {
  transform: scale(var(--pt-motion-zoom));
}

.pt-tile[data-type="image"] .tile-cover,
.pt-tile[data-type="hero"] .tile-cover {
  transition: transform calc(var(--pt-motion-duration) * 1.5) var(--pt-motion-ease);
}

.tile-fill {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(10px, 4cqh, 18px);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.tile-fill.text-card {
  justify-content: flex-start;
  /* keep .text-card gap; don't inherit unset gap from .pt-tile-inner */
}

.tile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 0.7em 1.25em;
  background: var(--pt-accent);
  color: var(--pt-on-accent);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1;
  transition:
    transform var(--pt-motion-duration) var(--pt-motion-ease),
    filter var(--pt-motion-duration) var(--pt-motion-ease),
    box-shadow var(--pt-motion-duration) var(--pt-motion-ease);
}

.tile-cta:hover {
  transform: translateY(calc(-0.35 * var(--pt-motion-lift)));
  filter: brightness(1.06);
}

/* Social */
.social-card__top {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2cqw, 12px);
  min-width: 0;
}

.social-card__icon {
  flex: 0 0 auto;
  width: clamp(28px, 7.5cqw, 36px);
  height: clamp(28px, 7.5cqw, 36px);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pt-on-accent);
  font-size: clamp(12px, 3cqw, 15px);
  font-weight: 700;
}

.social-card__icon--x { background: var(--pt-ink); }
.social-card__icon--li {
  background: #0a66c2;
  font-size: clamp(11px, 2.6cqw, 13px);
}

.social-card__who {
  min-width: 0;
  flex: 1 1 auto;
}

.social-card__name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--pt-sans);
  font-weight: 700;
  font-size: clamp(1rem, 2.4cqw, 1.15rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  min-width: 0;
}

.social-card__name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-card__verified {
  color: #1d9bf0;
  font-size: 0.78em;
  flex: 0 0 auto;
}

.social-card__handle,
.social-card__bio {
  color: var(--pt-muted);
  font-size: clamp(0.88rem, 2cqw, 0.98rem);
  line-height: 1.4;
  margin: 0;
}

.social-card__handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-card__bio {
  flex: 1 1 auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.social-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: auto;
}

@container tile (min-width: 300px) {
  .social-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
  }
  .social-card__top { grid-column: 1; grid-row: 1; }
  .social-card__bio { grid-column: 1; grid-row: 2; -webkit-line-clamp: 4; }
  .social-card__footer {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: end;
    margin-top: 0;
  }
}

@container tile (max-width: 220px) {
  .social-card__bio { -webkit-line-clamp: 2; }
  .social-card__footer { justify-content: flex-start; }
}

@container tile (min-height: 220px) {
  .social-card__bio { -webkit-line-clamp: 6; }
}

/* Link — stacked action card (icon top, label bottom) */
a.link-card,
.link-card {
  box-sizing: border-box;
  justify-content: space-between;
  gap: clamp(8px, 3cqh, 14px);
  padding: clamp(14px, 4cqw, 20px);
  border-radius: inherit;
  cursor: pointer;
  color: var(--pt-ink);
  text-decoration: none;
}

a.link-card:visited,
a.link-card:hover,
a.link-card:active {
  color: var(--pt-ink);
  text-decoration: none;
}

.link-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.link-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 14cqw, 52px);
  height: clamp(42px, 14cqw, 52px);
  border-radius: 16px;
  background: color-mix(in srgb, var(--pt-accent) 10%, rgba(255,255,255,0.72));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
  font-size: clamp(1.15rem, 4.5cqw, 1.45rem);
  line-height: 1;
}

.link-card__icon--mark {
  padding: 0;
}

.link-card__mark {
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pt-accent) 45%, #fff), var(--pt-accent) 55%, color-mix(in srgb, var(--pt-accent) 70%, var(--pt-ink)));
  box-shadow: 0 6px 14px rgba(91, 63, 214, 0.3);
  display: inline-block;
}

.link-card__arrow {
  flex: 0 0 auto;
  opacity: 0.4;
  font-size: clamp(0.85rem, 3cqw, 1rem);
  line-height: 1;
  margin-top: 4px;
  transition: opacity var(--pt-motion-duration) var(--pt-motion-ease), transform var(--pt-motion-duration) var(--pt-motion-ease);
  color: var(--pt-ink);
  text-decoration: none;
}

.link-card:hover .link-card__arrow {
  opacity: 0.9;
  transform: translate(2px, -2px);
}

.link-card:hover .link-card__icon {
  background: color-mix(in srgb, var(--pt-accent) 16%, rgba(255,255,255,0.78));
}

/* Link fills via data-fill — updates live while editing */
.pt-tile[data-type="link"][data-fill="pink"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="tan"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="lavender"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="mint"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="sky"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="sage"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="coral"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="sand"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="slate"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="rose"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="ink"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="contrast"]:not(:has(.link-card--media)),
.pt-tile[data-type="link"][data-fill="alert"]:not(:has(.link-card--media)) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: transparent !important;
  box-shadow: 0 10px 28px rgba(20, 12, 40, 0.14) !important;
}

.pt-tile[data-type="link"][data-fill="cream"]:not(:has(.link-card--media)) {
  background: var(--pt-tone-soft) !important;
  border-color: color-mix(in srgb, var(--pt-ink) 12%, transparent) !important;
}
.pt-tile[data-type="link"][data-fill="pink"]:not(:has(.link-card--media)) { background: var(--pt-tone-pink) !important; }
.pt-tile[data-type="link"][data-fill="tan"]:not(:has(.link-card--media)) { background: var(--pt-tone-tan) !important; }
.pt-tile[data-type="link"][data-fill="lavender"]:not(:has(.link-card--media)) { background: var(--pt-accent) !important; }
.pt-tile[data-type="link"][data-fill="frost"]:not(:has(.link-card--media)) {
  background: var(--pt-tone-frost) !important;
  border-color: color-mix(in srgb, #fff 50%, transparent) !important;
  backdrop-filter: blur(12px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.1) !important;
}
.pt-tile[data-type="link"][data-fill="sage"]:not(:has(.link-card--media)) { background: var(--pt-tone-sage-solid) !important; }
.pt-tile[data-type="link"][data-fill="coral"]:not(:has(.link-card--media)) { background: var(--pt-tone-coral-solid) !important; }
.pt-tile[data-type="link"][data-fill="sand"]:not(:has(.link-card--media)) { background: var(--pt-tone-sand-solid) !important; }
.pt-tile[data-type="link"][data-fill="slate"]:not(:has(.link-card--media)) { background: var(--pt-tone-slate-solid) !important; }
.pt-tile[data-type="link"][data-fill="rose"]:not(:has(.link-card--media)) { background: var(--pt-tone-rose-solid) !important; }
.pt-tile[data-type="link"][data-fill="mint"]:not(:has(.link-card--media)) { background: var(--pt-tone-mint) !important; }
.pt-tile[data-type="link"][data-fill="sky"]:not(:has(.link-card--media)) { background: var(--pt-tone-sky) !important; }
.pt-tile[data-type="link"][data-fill="ink"]:not(:has(.link-card--media)) { background: var(--pt-tone-solid) !important; }
.pt-tile[data-type="link"][data-fill="contrast"]:not(:has(.link-card--media)) { background: var(--pt-tone-contrast) !important; }
.pt-tile[data-type="link"][data-fill="alert"]:not(:has(.link-card--media)) {
  background: color-mix(in srgb, var(--pt-accent) 88%, var(--pt-ink)) !important;
}

.pt-tile[data-type="link"][data-fill="cream"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="cream"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="cream"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="frost"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="frost"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="frost"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="ink"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="ink"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="ink"]:not(:has(.link-card--media)) .link-card__arrow {
  color: var(--pt-ink) !important;
}
.pt-tile[data-type="link"][data-fill="cream"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="frost"]:not(:has(.link-card--media)) .link-card__sub {
  color: color-mix(in srgb, var(--pt-ink) 62%, var(--pt-muted)) !important;
}
.pt-tile[data-type="link"][data-fill="ink"]:not(:has(.link-card--media)) .link-card__sub {
  color: color-mix(in srgb, var(--pt-ink) 70%, transparent) !important;
}
.pt-tile[data-type="link"][data-fill="cream"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="frost"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="ink"]:not(:has(.link-card--media)) .link-card__icon {
  background: color-mix(in srgb, var(--pt-ink) 10%, transparent);
  color: var(--pt-ink);
}

.pt-tile[data-type="link"][data-fill="pink"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="pink"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="pink"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="tan"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="tan"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="tan"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="lavender"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="lavender"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="lavender"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="mint"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="mint"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="mint"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="sky"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="sky"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="sky"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="sage"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="sage"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="sage"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="coral"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="coral"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="coral"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="sand"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="sand"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="sand"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="slate"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="slate"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="slate"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="rose"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="rose"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="rose"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="contrast"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="contrast"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="contrast"]:not(:has(.link-card--media)) .link-card__arrow,
.pt-tile[data-type="link"][data-fill="alert"]:not(:has(.link-card--media)) .link-card,
.pt-tile[data-type="link"][data-fill="alert"]:not(:has(.link-card--media)) .link-card__title,
.pt-tile[data-type="link"][data-fill="alert"]:not(:has(.link-card--media)) .link-card__arrow {
  color: var(--pt-on-accent) !important;
}
.pt-tile[data-type="link"][data-fill="pink"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="tan"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="lavender"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="mint"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="sky"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="sage"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="coral"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="sand"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="slate"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="rose"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="contrast"]:not(:has(.link-card--media)) .link-card__sub,
.pt-tile[data-type="link"][data-fill="alert"]:not(:has(.link-card--media)) .link-card__sub {
  color: rgba(255, 255, 255, 0.78) !important;
}
.pt-tile[data-type="link"][data-fill="pink"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="tan"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="lavender"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="mint"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="sky"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="sage"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="coral"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="sand"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="slate"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="rose"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="contrast"]:not(:has(.link-card--media)) .link-card__icon,
.pt-tile[data-type="link"][data-fill="alert"]:not(:has(.link-card--media)) .link-card__icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--pt-on-accent);
  box-shadow: none;
  font-size: clamp(1.35rem, 5.5cqw, 1.7rem);
  border-radius: 14px;
}

.pt-tile[data-type="link"][data-fill]:not([data-fill="default"]):not([data-fill=""]):not(:has(.link-card--media)) .link-card__arrow {
  opacity: 0.7;
}

.link-card__body {
  margin-top: auto;
  min-width: 0;
  width: 100%;
}

.link-card__title {
  font-family: var(--pt-sans);
  font-weight: 700;
  font-size: clamp(1.05rem, 3cqw, 1.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--pt-ink);
  text-decoration: none;
}

.link-card__sub {
  margin-top: 4px;
  color: var(--pt-muted);
  font-size: clamp(0.88rem, 2.2cqw, 0.98rem);
  line-height: 1.35;
  text-decoration: none;
}

@container tile (max-height: 150px) {
  .link-card {
    gap: 6px;
    padding: clamp(12px, 3.5cqw, 16px);
  }
  .link-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 1.05rem;
  }
  .link-card__title {
    font-size: clamp(1rem, 3cqw, 1.12rem);
  }
  .link-card__sub {
    font-size: 0.85rem;
    margin-top: 2px;
  }
}

/* Link with preview screenshot */
.link-card--media {
  position: relative;
  padding: 0;
  gap: 0;
  justify-content: space-between;
  align-items: stretch;
  overflow: hidden;
  color: var(--pt-on-accent);
  width: 100%;
}

a.link-card--media,
a.link-card--media:visited,
a.link-card--media:hover,
a.link-card--media:active {
  color: var(--pt-on-accent);
}

.link-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  background: color-mix(in srgb, var(--pt-accent) 12%, #fff);
}

.link-card__media .tile-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: none;
  transition: transform calc(var(--pt-motion-duration) * 1.2) var(--pt-motion-ease);
}

.link-card--media:hover .link-card__media .tile-cover {
  transform: scale(var(--pt-motion-zoom));
}

/* Full-bleed shade — don't rely on the text body width */
.link-card--media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(20, 12, 40, 0) 0%,
    rgba(20, 12, 40, 0.28) 42%,
    rgba(20, 12, 40, 0.72) 100%
  );
}

.link-card--media .link-card__head,
.link-card--media .link-card__body {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.link-card--media .link-card__head {
  padding: 12px 12px 0;
}

.link-card--media .link-card__icon--spacer {
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.link-card--media .link-card__arrow {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pt-ink);
  opacity: 0.95;
  font-size: 0.8rem;
  box-shadow: 0 6px 16px rgba(20, 10, 40, 0.18);
}

.link-card--media:hover .link-card__arrow {
  opacity: 1;
}

.link-card--media .link-card__body {
  margin-top: auto;
  padding: 18px 14px 12px;
  background: none;
}

.link-card--media .link-card__title {
  color: var(--pt-on-accent);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.link-card--media .link-card__sub {
  color: rgba(255, 255, 255, 0.88);
}

.pt-tile[data-type="link"]:has(.link-card--media) {
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 14px 36px rgba(55, 30, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* GitHub */
.github-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: clamp(1rem, 2.5cqw, 1.12rem);
}

.github-card__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.github-heat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7px, 1fr));
  gap: 3px;
  flex: 1 1 auto;
  align-content: end;
  min-height: 0;
}

.github-heat i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(46, 160, 67, 0.14);
  min-height: 0;
}

.github-heat i.l1 { background: rgba(46, 160, 67, 0.28); }
.github-heat i.l2 { background: rgba(46, 160, 67, 0.5); }
.github-heat i.l3 { background: rgba(46, 160, 67, 0.75); }
.github-heat i.l4 { background: rgb(33, 110, 57); }

/* Text */
.text-card {
  gap: 8px;
  justify-content: flex-start;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.text-card--plain {
  justify-content: center;
}

.text-card__media {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100% - 6.5rem);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.2);
}

.text-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.text-card__copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.text-card--center .text-card__copy { align-items: center; text-align: center; }
.text-card--right .text-card__copy { align-items: flex-end; text-align: right; }
.text-card--left .text-card__copy { align-items: flex-start; text-align: left; }

.text-card__heading {
  margin: 0;
  font-family: var(--pt-serif);
  font-size: clamp(1.15rem, 3cqw, 1.45rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--pt-ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: 0 1 auto;
  min-height: 0;
}

.text-card__body {
  margin: 0;
  color: color-mix(in srgb, var(--pt-muted) 35%, var(--pt-ink) 65%);
  font-size: clamp(0.88rem, 2.2cqw, 1.02rem);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: 0 1 auto;
  min-height: 0;
}

.text-card__byline {
  margin: 0;
  font-size: clamp(0.68rem, 2cqw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--pt-accent) 70%, var(--pt-ink));
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 0 0 auto;
  max-width: 100%;
}

/* Short numeric bylines read as step indexes */
.text-card__byline:is(:lang(en)) {
  font-variant-numeric: tabular-nums;
}

.text-card__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--pt-accent);
  font-size: 0.92rem;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.text-card__star {
  display: inline-block;
  line-height: 1;
}

.text-card__star.is-off {
  opacity: 0.28;
}

/* Quote / testimonial layout */
.text-card--tone-quote .text-card__copy {
  gap: 8px;
  height: 100%;
  justify-content: flex-start;
}

.text-card--tone-quote .text-card__heading {
  font-family: var(--pt-serif);
  font-size: clamp(1.2rem, 3.1cqw, 1.55rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.text-card--tone-quote .text-card__body {
  -webkit-line-clamp: 4;
  color: color-mix(in srgb, var(--pt-ink) 62%, var(--pt-muted) 38%);
  font-size: clamp(0.9rem, 2.1cqw, 1rem);
  line-height: 1.5;
}

.text-card--tone-quote .text-card__byline {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--pt-sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--pt-muted) 55%, var(--pt-ink) 45%);
}

.text-card--tone-quote .text-card__stars {
  margin-bottom: 2px;
}

/* Theme fills via data-fill — updates live while editing */
.pt-tile[data-type="text"][data-fill]:not([data-fill="default"]):not([data-fill=""]) {
  border-color: color-mix(in srgb, var(--pt-ink) 12%, transparent);
}

.pt-tile[data-type="text"][data-fill="cream"] {
  background: var(--pt-tone-soft) !important;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--pt-ink) 6%, transparent);
}
.pt-tile[data-type="text"][data-fill="pink"] {
  background: var(--pt-tone-blush) !important;
}
.pt-tile[data-type="text"][data-fill="tan"] {
  background: var(--pt-tone-mist) !important;
}
.pt-tile[data-type="text"][data-fill="lavender"] {
  background: var(--pt-tone-accent-wash) !important;
  border-color: color-mix(in srgb, var(--pt-accent) 22%, transparent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--pt-accent) 14%, transparent);
}
.pt-tile[data-type="text"][data-fill="frost"] {
  background: var(--pt-tone-frost) !important;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-color: color-mix(in srgb, #fff 55%, transparent);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--pt-ink) 8%, transparent);
}
.pt-tile[data-type="text"][data-fill="sage"] {
  background: var(--pt-tone-sage) !important;
}
.pt-tile[data-type="text"][data-fill="coral"] {
  background: var(--pt-tone-coral) !important;
}
.pt-tile[data-type="text"][data-fill="sand"] {
  background: var(--pt-tone-sand) !important;
}
.pt-tile[data-type="text"][data-fill="slate"] {
  background: var(--pt-tone-slate) !important;
}
.pt-tile[data-type="text"][data-fill="rose"] {
  background: var(--pt-tone-rose) !important;
}
.pt-tile[data-type="text"][data-fill="quote"] {
  background: var(--pt-tone-quote) !important;
  border-color: color-mix(in srgb, var(--pt-accent) 16%, transparent);
  box-shadow:
    inset 3px 0 0 var(--pt-accent),
    0 16px 36px color-mix(in srgb, var(--pt-ink) 9%, transparent);
}
.pt-tile[data-type="text"][data-fill="quote"]:has(.text-card--center) {
  box-shadow: 0 16px 36px color-mix(in srgb, var(--pt-ink) 9%, transparent);
}

.pt-tile[data-type="text"][data-fill="ink"] {
  background: var(--pt-tone-solid) !important;
  border-color: color-mix(in srgb, var(--pt-ink) 14%, transparent);
  box-shadow: 0 18px 40px var(--pt-shadow);
}
.pt-tile[data-type="text"][data-fill="ink"] .text-card__heading,
.pt-tile[data-type="text"][data-fill="ink"] .text-card__body,
.pt-tile[data-type="text"][data-fill="ink"] .text-card__byline {
  color: var(--pt-ink);
}
.pt-tile[data-type="text"][data-fill="ink"] .text-card__body,
.pt-tile[data-type="text"][data-fill="ink"] .text-card__byline {
  color: color-mix(in srgb, var(--pt-ink) 72%, var(--pt-muted) 28%);
}

.pt-tile[data-type="text"][data-fill="contrast"] {
  background: var(--pt-tone-contrast) !important;
  border-color: transparent;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--pt-ink) 28%, transparent);
}
.pt-tile[data-type="text"][data-fill="contrast"] .text-card__heading,
.pt-tile[data-type="text"][data-fill="contrast"] .text-card__body,
.pt-tile[data-type="text"][data-fill="contrast"] .text-card__byline,
.pt-tile[data-type="text"][data-fill="contrast"] .text-card__stars {
  color: var(--pt-on-accent);
}
.pt-tile[data-type="text"][data-fill="contrast"] .text-card__body,
.pt-tile[data-type="text"][data-fill="contrast"] .text-card__byline {
  color: rgba(255, 255, 255, 0.82);
}
.pt-tile[data-type="text"][data-fill="contrast"] .text-card__star.is-off {
  opacity: 0.35;
  color: #fff;
}

.pt-tile[data-type="text"][data-fill="alert"] {
  background: var(--pt-accent) !important;
  border-color: transparent;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--pt-accent) 45%, transparent);
}
.pt-tile[data-type="text"][data-fill="alert"] .text-card__heading,
.pt-tile[data-type="text"][data-fill="alert"] .text-card__body,
.pt-tile[data-type="text"][data-fill="alert"] .text-card__byline {
  color: var(--pt-on-accent);
}
.pt-tile[data-type="text"][data-fill="alert"] .text-card__body,
.pt-tile[data-type="text"][data-fill="alert"] .text-card__byline {
  color: rgba(255, 255, 255, 0.85);
}

@container tile (min-width: 320px) and (max-height: 230px) {
  .text-card:not(.text-card--plain) {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .text-card:not(.text-card--plain) .text-card__media {
    flex: 0 0 42%;
    max-height: none;
    height: 100%;
    align-self: stretch;
  }
  .text-card:not(.text-card--plain) .text-card__copy {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@container tile (min-height: 280px) {
  .text-card__media { max-height: none; }
  .text-card__body { -webkit-line-clamp: 5; }
  .text-card__heading { -webkit-line-clamp: 4; }
}

@container tile (max-height: 160px) {
  .text-card {
    gap: 4px;
  }
  .text-card__heading {
    font-size: clamp(0.85rem, 2.6cqw, 1rem) !important;
    line-height: 1.22;
    -webkit-line-clamp: 2;
  }
  .text-card__body {
    -webkit-line-clamp: 2;
    font-size: clamp(0.7rem, 1.9cqw, 0.82rem) !important;
    line-height: 1.3;
  }
  .text-card__byline {
    font-size: 0.65rem !important;
  }
}

@container tile (max-height: 110px) {
  .text-card__heading {
    font-size: clamp(0.8rem, 2.4cqw, 0.92rem) !important;
    -webkit-line-clamp: 2;
  }
  .text-card__body {
    -webkit-line-clamp: 1;
    font-size: clamp(0.68rem, 1.8cqw, 0.78rem) !important;
  }
}

/* Goal mini */
.goal-mini-card {
  justify-content: center;
  gap: clamp(10px, 4cqh, 16px);
}

.goal-mini-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.goal-mini-card__label {
  font-weight: 600;
  font-size: clamp(0.85rem, 3cqw, 1.05rem);
}

.goal-mini-card__meta {
  color: var(--pt-muted);
  font-size: clamp(0.7rem, 2.2cqw, 0.85rem);
  font-weight: 700;
  white-space: nowrap;
}

.goal-mini-bar {
  height: clamp(8px, 2.5cqh, 12px);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pt-accent) 15%, transparent);
  overflow: hidden;
  width: 100%;
}

.goal-mini-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pt-accent) 70%, #fff), var(--pt-accent));
  border-radius: inherit;
}

/* Newsletter */
.newsletter-card {
  gap: clamp(12px, 3.5cqh, 18px);
  justify-content: space-between;
}

.newsletter-card__heading {
  margin: 0 0 8px;
  font-family: var(--pt-serif);
  font-size: clamp(1.25rem, 3cqw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--pt-ink);
}

.newsletter-card__body {
  margin: 0;
  color: color-mix(in srgb, var(--pt-muted) 30%, var(--pt-ink) 70%);
  font-size: clamp(0.95rem, 2.2cqw, 1.05rem);
  line-height: 1.5;
}

.newsletter-form {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

@container tile (min-width: 340px) {
  .newsletter-form { grid-template-columns: 1fr 1fr; }
  .newsletter-form .section-cta { grid-column: 1 / -1; }
}

@container tile (min-width: 520px) {
  .newsletter-card {
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
  }
  .newsletter-card__copy { flex: 1; }
  .newsletter-form {
    flex: 1.05;
    grid-template-columns: 1fr;
  }
  .newsletter-form .section-cta { grid-column: auto; }
}

.newsletter-form input {
  border: 1px solid color-mix(in srgb, var(--pt-ink) 12%, transparent);
  border-radius: max(0px, calc(var(--pt-radius) * 0.45));
  padding: 12px 14px;
  background: var(--pt-glass);
  font: inherit;
  outline: none;
  min-width: 0;
  color: var(--pt-ink);
}

.newsletter-form .section-cta {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: max(0px, calc(var(--pt-radius) * 0.45));
  font: inherit;
  font-weight: 700;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  gap: 0;
  box-shadow: none;
  min-height: 0;
  height: auto;
}

.contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
  padding: clamp(18px, 5cqh, 28px) clamp(20px, 4.5cqw, 28px);
  gap: 16px;
  color: var(--pt-ink);
  font-family: var(--pt-sans);
  font-size: clamp(1.05rem, 2.8cqw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.contact-bar__label {
  color: color-mix(in srgb, var(--pt-muted) 45%, var(--pt-ink) 55%);
  font-weight: 500;
  margin-right: 0.35em;
}
.contact-bar__text strong { font-weight: 700; color: var(--pt-ink); }

.contact-bar__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 13px;
  flex: 0 0 auto;
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--pt-muted) 35%, #fff);
}

.map-frame__embed {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border: 0;
  display: block;
  /* Interactive always; edit mode disables via .pt-tile-inner pointer-events */
  pointer-events: auto;
}

.map-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: color-mix(in srgb, var(--pt-site-panel) 90%, transparent);
  color: var(--pt-ink);
  box-shadow: 0 6px 16px rgba(40, 30, 60, 0.1);
  text-decoration: none;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-label:hover {
  background: var(--pt-site-panel);
}

.tile-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pt-tile[data-type="hero"],
.pt-tile[data-type="image"] {
  padding: 0;
}

.pt-tile[data-type="hero"].selected,
.pt-tile[data-type="image"].selected,
.pt-tile[data-type="map"].selected {
  overflow: visible;
}

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.row-1 { grid-row: span 1; min-height: 110px; }
.row-2 { grid-row: span 2; min-height: 230px; }
.row-3 { grid-row: span 3; min-height: 340px; }
.row-4 { grid-row: span 4; min-height: 450px; }

.pt-toolbar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,190,215,0.72), rgba(245,150,190,0.58)) !important;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 16px 40px rgba(180, 60, 120, 0.22);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.pt-toolbar button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--pt-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.pt-toolbar button:hover,
.pt-toolbar button.active {
  background: rgba(255,255,255,0.4);
}

.pt-picker {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  z-index: 55;
  border-radius: 28px;
  padding: 16px;
}

.pt-picker-search {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 16px 12px 40px;
  background: rgba(255,255,255,0.7);
  font: inherit;
  outline: none;
}

.pt-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pt-cat {
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.45);
  color: var(--pt-ink);
}

.pt-cat.active {
  background: var(--pt-ink);
  color: var(--pt-on-accent);
}

.pt-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 280px;
  overflow: auto;
}

.pt-widget {
  aspect-ratio: 1.15;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  color: var(--pt-on-accent);
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
}

.pt-widget:hover { filter: brightness(1.05); transform: scale(1.02); }

.pt-theme-panel {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 28px));
  z-index: 55;
  border-radius: 28px;
  padding: 18px 18px 14px;
  max-height: min(78vh, 740px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 24px 64px rgba(30, 20, 50, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(165deg, rgba(255,255,255,0.72), rgba(255,255,255,0.38));
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
}

.pt-theme-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pt-theme-panel__eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pt-muted);
}

.pt-theme-panel__title {
  margin: 2px 0 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--pt-ink);
  font-family: var(--pt-serif);
}

.pt-theme-panel__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  color: var(--pt-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.pt-theme-panel__close:hover {
  color: var(--pt-ink);
  background: rgba(255,255,255,0.85);
}

.pt-theme-block {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(40, 50, 60, 0.08);
}

.pt-theme-block--last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.pt-theme-block__label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pt-muted);
  margin-bottom: 10px;
}

.pt-theme-slider {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px !important;
}

.pt-theme-slider span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  font-weight: 650;
  color: var(--pt-muted);
}

.pt-theme-slider em {
  font-style: normal;
  color: var(--pt-ink);
  font-weight: 700;
}

.pt-theme-slider input[type="range"] {
  margin: 0 !important;
}

.pt-radius-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pt-radius-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  border: 1.5px solid rgba(40, 50, 60, 0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-radius-opt:hover {
  background: rgba(255,255,255,0.7);
}

.pt-radius-opt.active {
  border-color: var(--pt-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt-accent) 18%, transparent);
  background: rgba(255,255,255,0.82);
}

.pt-radius-opt__shape {
  width: 36px;
  height: 28px;
  background: color-mix(in srgb, var(--pt-accent) 55%, #fff);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 6px 14px rgba(40, 30, 50, 0.12);
}

.pt-layout-opt__shape {
  width: 36px;
  height: 22px;
  position: relative;
  background: color-mix(in srgb, var(--pt-ink) 12%, #fff);
  box-shadow: none;
}

.pt-layout-opt__shape::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--pt-accent) 55%, #fff);
  border-radius: 2px;
}

.pt-layout-opt__shape[data-layout="site"]::after { width: 42%; }
.pt-layout-opt__shape[data-layout="wide"]::after { width: 62%; }
.pt-layout-opt__shape[data-layout="broadcast"]::after { width: 78%; }
.pt-layout-opt__shape[data-layout="full"]::after { width: 92%; }

.pt-nav-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.pt-nav-editor__row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.45);
}

.pt-nav-editor__row input[type="text"] {
  width: 100%;
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  background: rgba(255,255,255,0.75);
  color: var(--pt-ink);
}

.pt-nav-editor__flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pt-nav-editor__check {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 600;
  color: var(--pt-ink) !important;
  cursor: pointer;
}

.pt-nav-editor__check input {
  width: auto;
  margin: 0;
}

.pt-nav-editor__remove {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: var(--pt-danger-soft);
  color: var(--pt-danger);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.pt-nav-editor__add {
  border: 1.5px dashed rgba(30,40,50,0.22);
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--pt-ink);
  cursor: pointer;
}

.pt-nav-editor__add:hover {
  background: rgba(255,255,255,0.45);
}

.pt-block-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.pt-block-editor__card {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pt-block-editor__card textarea,
.pt-block-editor__card select,
.pt-block-editor__card input[type="text"],
.pt-block-editor__card input[type="url"] {
  width: 100%;
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  background: rgba(255,255,255,0.75);
  color: var(--pt-ink);
  resize: vertical;
}

.pt-block-editor__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pt-block-editor__type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pt-muted);
}

.pt-block-editor__moves {
  display: flex;
  gap: 4px;
}

.pt-block-editor__moves button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.65);
  color: var(--pt-ink);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.pt-block-editor__moves button:disabled {
  opacity: 0.35;
  cursor: default;
}

.pt-block-editor__moves button.is-danger {
  background: var(--pt-danger-soft);
  color: var(--pt-danger);
}

.pt-block-add {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pt-block-add__btn {
  border: 1.5px dashed rgba(30,40,50,0.2);
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--pt-ink);
  cursor: pointer;
}

.pt-block-add__btn:hover {
  background: rgba(255,255,255,0.45);
}

/* Section GUI — pick pieces, edit one at a time */
.pt-piece-span {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(40, 50, 60, 0.1);
}

.pt-piece-span > label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pt-muted);
  margin-bottom: 2px;
}

.pt-piece-span__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pt-piece-span__row > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pt-muted);
}

.pt-piece-span__stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--pt-line);
}

.pt-piece-span__stepper button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(40, 50, 60, 0.06);
  color: var(--pt-ink);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.pt-piece-span__stepper button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--pt-accent) 18%, #fff);
}

.pt-piece-span__stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pt-piece-span__stepper strong {
  min-width: 1.5rem;
  text-align: center;
  font-size: 16px;
  color: var(--pt-ink);
  font-variant-numeric: tabular-nums;
}

.pt-section-grid-size {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.pt-section-grid-size__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pt-muted);
}

.pt-section-grid-size__field input {
  width: 64px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(40, 50, 60, 0.15);
  background: rgba(255,255,255,0.7);
  font: inherit;
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-section-grid-size__x {
  font-size: 18px;
  font-weight: 700;
  color: var(--pt-muted);
  padding-bottom: 8px;
}

.pt-section-grid-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.pt-section-grid-presets button {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(40, 50, 60, 0.14);
  background: rgba(255,255,255,0.55);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--pt-ink);
  cursor: pointer;
}

.pt-section-grid-presets button:hover {
  background: rgba(255,255,255,0.85);
}

.pt-frame-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pt-frame-picker__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-frame-picker__opt.active {
  border-color: var(--pt-accent);
  background: rgba(255,255,255,0.65);
}

.pt-frame-picker__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  border-radius: 10px;
  font-family: var(--pt-serif);
  font-size: 13px;
  font-weight: 400;
}

.pt-frame-picker__preview.is-label {
  background: transparent;
  color: var(--pt-ink);
}

.pt-frame-picker__preview.is-hero {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.6);
}

.pt-frame-picker__preview.is-panel {
  background: rgba(255,255,255,0.2);
  border: 1.5px dashed rgba(255,255,255,0.55);
}

.pt-align-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.pt-align-picker button {
  flex: 1;
  height: 36px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,0.4);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--pt-ink);
  cursor: pointer;
}

.pt-align-picker button.active {
  border-color: var(--pt-accent);
  background: rgba(255,255,255,0.7);
}

.pt-sticky-picker button {
  font-size: 13px;
  letter-spacing: -0.01em;
}

.pt-piece-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.pt-piece {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.45);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
}

.pt-piece.active {
  border-color: var(--pt-accent);
  background: rgba(255,255,255,0.72);
}

.pt-piece__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--pt-accent) 12%, rgba(255,255,255,0.8));
  font-size: 13px;
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-piece__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pt-piece__kind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pt-muted);
}

.pt-piece__preview {
  font-size: 13px;
  font-weight: 600;
  color: var(--pt-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-piece__ops {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
}

.pt-piece__ops button {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.65);
  color: var(--pt-ink);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.pt-piece__ops button:disabled {
  opacity: 0.3;
  cursor: default;
}

.pt-piece__ops button.is-danger {
  background: var(--pt-danger-soft);
  color: var(--pt-danger);
}

.pt-piece-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.pt-piece-palette__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 4px;
  border: 1.5px dashed rgba(30,40,50,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.28);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  color: var(--pt-ink);
  cursor: pointer;
}

.pt-piece-palette__btn span:first-child {
  font-size: 15px;
  font-weight: 700;
}

.pt-piece-palette__btn:hover {
  background: rgba(255,255,255,0.55);
  border-style: solid;
}

.pt-piece-focus {
  margin-bottom: 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pt-piece-back {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--pt-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 0;
  cursor: pointer;
}

.pt-piece-back:hover {
  color: var(--pt-ink);
}

.pt-section-mode {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pt-piece-focus textarea,
.pt-piece-focus input[type="text"],
.pt-piece-focus input[type="url"],
.pt-piece-focus select {
  width: 100%;
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  background: rgba(255,255,255,0.8);
  color: var(--pt-ink);
}

.pt-section-more {
  margin-top: 4px;
  margin-bottom: 4px;
}

.pt-section-more summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  color: var(--pt-muted);
  margin-bottom: 8px;
}

.pt-section-more[open] summary {
  margin-bottom: 10px;
}

.pt-theme-hint {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--pt-muted);
}

.pt-theme-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.pt-theme-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px 10px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-theme-preset.active {
  border-color: var(--pt-accent);
  background: rgba(255,255,255,0.62);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt-accent) 16%, transparent);
}

.pt-theme-swatch {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  display: block;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.4),
    0 8px 16px rgba(40, 30, 50, 0.12);
}

.pt-theme-divider {
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--pt-accent) 15%, transparent);
  margin: 8px 0 4px;
}

.pt-theme-panel label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--pt-muted);
}

.pt-theme-colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.pt-theme-color {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
}

.pt-theme-color span {
  font-size: 11px;
  font-weight: 650;
  color: var(--pt-muted);
}

.pt-theme-color input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 0;
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  margin: 0 !important;
}

.pt-font-pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.pt-font-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid rgba(40, 50, 60, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--pt-ink);
}

.pt-font-pair:hover {
  border-color: color-mix(in srgb, var(--pt-accent) 35%, rgba(40, 50, 60, 0.15));
  background: rgba(255, 255, 255, 0.7);
}

.pt-font-pair.active {
  border-color: var(--pt-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt-accent) 18%, transparent);
  background: rgba(255, 255, 255, 0.82);
}

.pt-font-pair__sample {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  color: var(--pt-ink);
}

.pt-font-pair__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pt-font-pair__meta strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pt-font-pair__meta small {
  font-size: 10px;
  color: var(--pt-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-theme-panel input[type="range"],
.pt-theme-panel input[type="color"] {
  width: 100%;
  margin-bottom: 14px;
}

.progress-seg {
  display: flex;
  gap: 3px;
  align-items: center;
}

.progress-seg i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(90, 70, 140, 0.18);
  display: block;
}

.progress-seg i.on {
  background: var(--pt-accent);
}

.goal-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: clamp(6px, 1.5cqh, 10px) 0;
}

.goal-row__title {
  font-size: clamp(0.78rem, 2.4cqw, 0.95rem);
  line-height: 1.3;
  min-width: 0;
}

.goal-row__meter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.goal-row__pct {
  font-size: 0.72rem;
  font-weight: 700;
  width: 2.2rem;
  text-align: right;
}

.goal-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--pt-accent) 35%, transparent);
  background: transparent;
  flex: 0 0 auto;
}

.goal-check.is-done {
  background: var(--pt-accent);
  border-color: var(--pt-accent);
}

.goals-card {
  justify-content: flex-start;
  gap: clamp(8px, 2.5cqh, 14px);
}

.goals-card__days {
  margin: 0;
  font-family: var(--pt-serif);
  font-size: clamp(1.35rem, 5cqw, 2rem);
  font-weight: 650;
  line-height: 1.1;
}

.goals-card__list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}

@container tile (min-width: 420px) {
  .goal-row {
    grid-template-columns: 22px minmax(0, 1.4fr) minmax(120px, 0.8fr);
  }
}

.auth-card, .dash-card {
  max-width: 420px;
  margin: 10vh auto;
  padding: 28px;
  border-radius: 28px;
}

.auth-card input, .dash-card input {
  width: 100%;
  margin: 8px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--pt-accent) 15%, transparent);
  font: inherit;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: var(--pt-ink);
  color: var(--pt-on-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.mobile-preview .pt-layout {
  max-width: 420px;
  padding-left: 14px;
  padding-right: 14px;
}

.mobile-preview .pt-grid {
  grid-template-columns: 1fr;
  grid-auto-flow: row dense;
  grid-auto-rows: minmax(var(--pt-row), auto);
}

.mobile-preview .pt-tile {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}

/* —— Responsive page shell (all public tile sites) —— */
@media (max-width: 900px) {
  :root {
    --pt-gap: 16px;
    --pt-row: 120px;
  }

  body.page-shell[data-density="compact"] {
    --pt-gap: 10px;
    --pt-row: 96px;
    --pt-pad: 14px;
  }

  body.page-shell {
    background-attachment: scroll;
  }

  .pt-topbar {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 8px;
  }

  .pt-pill {
    padding: 7px 11px;
    font-size: 12px;
    max-width: min(52vw, 220px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pt-layout {
    padding: calc(var(--pt-sticky-top) + 12px) 14px 140px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Same 4-col lattice as edit — public is WYSIWYG on tablet too */
  .pt-grid,
  .mobile-preview .pt-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: var(--pt-row);
    min-width: 680px;
    min-height: 0;
  }

  .pt-grid .section-block .section-cta-row {
    flex-wrap: wrap;
  }

  .pt-utils {
    left: 10px;
    right: 10px;
    bottom: 12px;
    flex-wrap: wrap;
    max-width: none;
    justify-content: flex-start;
  }

  .pt-share span { display: none; }

  .pt-edit-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(72vh, 640px);
    border-radius: 24px 24px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -16px 48px rgba(30, 16, 60, 0.22);
  }

  .nav-tile a {
    padding: 9px 12px;
    font-size: 12px;
  }

  .pt-tile-inner {
    padding: 20px;
  }

  .pt-tile[data-type="hero"] .pt-tile-inner,
  .pt-tile[data-type="image"] .pt-tile-inner,
  .pt-tile[data-type="map"] .pt-tile-inner,
  .pt-tile[data-type="contact"] .pt-tile-inner,
  .pt-tile[data-type="section"] .pt-tile-inner {
    padding: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --pt-gap: 12px;
    --pt-row: 110px;
    --pt-radius: 24px;
  }

  body.page-shell[data-density="compact"] {
    --pt-gap: 10px;
    --pt-row: 92px;
    --pt-pad: 14px;
  }

  .pt-layout {
    padding: 70px 12px 150px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pt-grid,
  .mobile-preview .pt-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    grid-auto-rows: var(--pt-row);
    min-width: 640px;
  }

  .pt-widget-grid { grid-template-columns: repeat(2, 1fr); }

  .profile-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .text-card__heading {
    font-size: clamp(1.15rem, 6vw, 1.45rem);
  }

  body.page-shell[data-density="site"] .pt-grid .pt-tile[data-type="section"] .section-frame--hero .section-heading {
    font-size: clamp(1.85rem, 6vw, 2.25rem);
  }

  .section-frame--hero .section-heading {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .section-frame {
    padding: 18px 16px;
  }

  .section-frame--hero {
    padding: 22px 18px;
  }

  .media-label {
    left: 10px;
    bottom: 10px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .pt-utils {
    gap: 8px;
  }

  .pt-icon-btn,
  .pt-share {
    height: 42px;
  }

  .pt-icon-btn {
    width: 42px;
  }

  .pt-toolbar {
    bottom: 10px;
    padding: 6px 7px;
    gap: 0;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pt-toolbar button {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    font-size: 14px;
  }

  .pt-picker,
  .pt-theme-panel {
    bottom: 64px;
    width: min(520px, calc(100vw - 16px));
    max-height: min(70vh, 560px);
    overflow: auto;
    border-radius: 22px;
  }

  .pt-widget-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pt-radius-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dashboard / auth helpers */
@media (max-width: 640px) {
  .dash-shell {
    padding: 72px 14px 40px !important;
  }

  .dash-shell__head {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .dash-shell h1.serif {
    font-size: 2rem;
  }

  .dash-examples {
    line-height: 1.7;
  }

  .dash-page-row {
    flex-direction: column;
    align-items: stretch !important;
  }

  .dash-page-actions {
    width: 100%;
  }

  .dash-page-actions > a {
    flex: 1;
    justify-content: center;
  }

  .auth-card, .dash-card {
    margin-left: 0;
    margin-right: 0;
    width: auto;
    max-width: none;
  }
}

/* —— Landing —— */
body.landing-body {
  background: color-mix(in srgb, var(--pt-accent) 65%, #a89bd4) url('/images/bg-mountains.svg') center / cover fixed;
  color: var(--pt-ink);
  overflow-x: hidden;
}

.landing-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
}

.landing-nav-mark {
  font-size: 1.35rem;
  font-weight: 650;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-nav-actions a {
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.landing-nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--pt-ink);
  color: var(--pt-on-accent) !important;
}

.landing-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 110px 48px 72px;
  max-width: 1280px;
  margin: 0 auto;
}

.landing-hero-copy {
  animation: landingRise 0.9s ease both;
}

.landing-kicker {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(61, 42, 109, 0.72);
}

.landing-brand {
  margin: 0;
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--pt-ink);
}

.landing-lede {
  margin: 18px 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  color: color-mix(in srgb, var(--pt-ink) 70%, var(--pt-accent));
}

.landing-sub {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(61, 42, 109, 0.78);
}

.landing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--pt-ink);
  color: var(--pt-on-accent);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(31, 22, 56, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(31, 22, 56, 0.34);
}

.landing-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--pt-ink);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
}

.landing-stage {
  position: relative;
  min-height: 520px;
  animation: landingRise 1.05s ease 0.12s both;
}

.landing-preview {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
  box-shadow:
    0 30px 80px rgba(55, 30, 110, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transform-origin: center left;
}

.lp-profile { padding: 8px 4px; }
.lp-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pt-accent) 25%, #fff), transparent 45%),
    linear-gradient(145deg, color-mix(in srgb, var(--pt-accent) 70%, #fff), var(--pt-accent));
  border: 3px solid rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.lp-name { font-size: 1.05rem; font-weight: 650; line-height: 1.15; }
.lp-role { font-size: 0.68rem; color: var(--pt-muted); margin: 4px 0 10px; }
.lp-bio {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.68rem;
}

.lp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto auto;
  gap: 10px;
}

.lp-tile {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 12px;
  overflow: hidden;
}

.lp-goals { grid-column: 1 / -1; }
.lp-days { font-size: 1.15rem; font-weight: 650; margin-bottom: 8px; }
.lp-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(90, 70, 140, 0.15);
  margin-top: 6px;
  overflow: hidden;
}
.lp-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pt-accent) 70%, #fff), var(--pt-accent));
}

.lp-hero {
  min-height: 110px;
  padding: 0;
  background:
    linear-gradient(160deg, rgba(140, 110, 255, 0.35), rgba(255, 170, 210, 0.35)),
    radial-gradient(circle at 70% 40%, var(--pt-on-accent) 0 8px, transparent 9px),
    color-mix(in srgb, var(--pt-accent) 45%, #fff);
}

.lp-social {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  font-size: 0.75rem;
}
.lp-social strong { font-size: 1.1rem; }

.lp-map {
  min-height: 88px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 55% 40%, color-mix(in srgb, var(--pt-danger) 70%, #fff) 0 6px, transparent 7px),
    linear-gradient(160deg, color-mix(in srgb, var(--pt-accent) 12%, #fff), color-mix(in srgb, var(--pt-muted) 40%, #fff));
  font-size: 0.72rem;
  font-weight: 700;
}

.lp-mail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 88px;
  font-size: 0.95rem;
}
.lp-mail-btn {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pt-ink);
  color: var(--pt-on-accent);
  font-size: 0.68rem;
  font-weight: 700;
}

.landing-float {
  position: absolute;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(55, 30, 110, 0.16);
}

.landing-float-a {
  top: 8%;
  right: -2%;
  animation: landingFloat 5.5s ease-in-out infinite;
}
.landing-float-b {
  bottom: 18%;
  left: -4%;
  animation: landingFloat 6.5s ease-in-out 0.6s infinite;
}
.landing-float-c {
  bottom: 4%;
  right: 8%;
  animation: landingFloat 7s ease-in-out 1.1s infinite;
}

.landing-strip {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  text-align: center;
  animation: landingRise 1s ease 0.25s both;
}

.landing-strip h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.landing-strip p {
  margin: 0 auto 22px;
  max-width: 46ch;
  color: rgba(61, 42, 109, 0.78);
  line-height: 1.55;
}

.landing-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.landing-chips span {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
}

.landing-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 36px 36px;
  font-size: 0.85rem;
  color: rgba(61, 42, 109, 0.7);
}

@keyframes landingRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes landingFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 980px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding: 110px 24px 48px;
  }
  .landing-preview {
    transform: none;
  }
  .landing-stage { min-height: 0; }
  .landing-float-a { right: 4%; }
  .landing-float-b { left: 2%; }
}

@media (max-width: 640px) {
  .landing-nav { padding: 16px 18px; }
  .landing-preview { grid-template-columns: 1fr; }
  .lp-bio { display: none; }
  .landing-foot { flex-direction: column; padding: 16px 20px 28px; }
}

/* —— Forms (Airtable-style responses) —— */
body.forms-shell {
  min-height: 100vh;
}

.pt-forms {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.pt-forms__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pt-forms__top-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pt-forms__back {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pt-muted);
  text-decoration: none;
}

.pt-forms__title {
  margin: 0;
  font-family: var(--pt-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05;
  color: var(--pt-ink);
}

.pt-forms__sub {
  margin: 4px 0 0;
  color: var(--pt-muted);
}

.pt-forms__top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pt-forms__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  min-height: 62vh;
  align-items: stretch;
}

.pt-forms__layout.has-detail {
  grid-template-columns: 220px minmax(0, 1fr) 280px;
}

.pt-forms__sidebar,
.pt-forms__main,
.pt-forms__detail {
  border-radius: 18px;
  overflow: hidden;
}

.pt-forms__sidebar {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pt-forms__sidebar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pt-muted);
  padding: 4px 10px 10px;
}

.pt-forms__table-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--pt-ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.pt-forms__table-link:hover {
  background: rgba(255, 255, 255, 0.45);
}

.pt-forms__table-link.is-active {
  background: var(--pt-ink);
  color: var(--pt-on-accent);
}

.pt-forms__table-link.is-active .pt-forms__table-count {
  background: color-mix(in srgb, var(--pt-on-accent) 18%, transparent);
  color: var(--pt-on-accent);
}

.pt-forms__table-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-forms__table-count {
  flex: none;
  min-width: 1.6rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(31, 22, 56, 0.08);
  font-size: 0.75rem;
  text-align: center;
}

.pt-forms__empty-side {
  margin: 8px 10px;
  font-size: 0.88rem;
  color: var(--pt-muted);
  line-height: 1.4;
}

.pt-forms__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pt-forms__blank {
  padding: 48px 28px;
  text-align: center;
  color: var(--pt-muted);
}

.pt-forms__blank h2 {
  margin: 0 0 8px;
  font-family: var(--pt-serif);
  font-size: 1.8rem;
  color: var(--pt-ink);
}

.pt-forms__blank p {
  margin: 0 0 18px;
}

.pt-forms__grid-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pt-forms__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(31, 22, 56, 0.08);
}

.pt-forms__grid-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.pt-forms__grid-meta {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--pt-muted);
}

.pt-forms__search {
  width: min(260px, 100%);
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 22, 56, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
}

.pt-forms__table-scroll {
  overflow: auto;
  flex: 1;
}

.pt-forms__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.pt-forms__table th,
.pt-forms__table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(31, 22, 56, 0.07);
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-forms__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 246, 242, 0.96);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pt-muted);
}

.pt-forms__table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.pt-forms__table tbody tr:hover {
  background: rgba(31, 22, 56, 0.04);
}

.pt-forms__table tbody tr.is-selected {
  background: rgba(31, 22, 56, 0.08);
}

.pt-forms__row-num {
  width: 42px;
  color: var(--pt-muted);
  font-variant-numeric: tabular-nums;
}

.pt-forms__muted {
  color: var(--pt-muted);
}

.pt-forms__empty-cell {
  text-align: center !important;
  padding: 48px 20px !important;
  color: var(--pt-muted);
  white-space: normal !important;
}

.pt-forms__detail {
  padding: 16px;
}

.pt-forms__detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pt-forms__detail-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.pt-forms__icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(31, 22, 56, 0.06);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--pt-ink);
}

.pt-forms__detail-fields {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.pt-forms__detail-fields dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pt-muted);
  margin-bottom: 3px;
}

.pt-forms__detail-fields dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.pt-forms__danger {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: rgba(180, 35, 35, 0.12);
  color: var(--pt-danger);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pt-edit-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.pt-edit-list-head .pt-edit-add {
  width: auto;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.pt-edit-form-field {
  display: grid;
  grid-template-columns: 1fr 88px auto 28px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.pt-edit-form-field input[type="text"],
.pt-edit-form-field select {
  margin: 0;
  width: 100%;
}

.pt-edit-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  margin: 0;
}

.pt-edit-remove {
  width: 28px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: var(--pt-danger-soft);
  color: var(--pt-danger);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 960px) {
  .pt-forms__layout,
  .pt-forms__layout.has-detail {
    grid-template-columns: 1fr;
  }
  .pt-forms__sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .pt-forms__sidebar-label {
    width: 100%;
  }
  .pt-edit-form-field {
    grid-template-columns: 1fr 1fr;
  }
}
