/* Pala Advisory homepage — dense-tiles / Stone and blueprint
   Subpages keep using styles.css. */

:root {
  --bg: #dfdedb;
  --surface: #d3d2ce;
  --surface-2: #c8c6c1;
  --ink: #1c1b16;
  --muted: #3f3d36;
  --accent: #2456d6;
  --accent-ink: #ffffff;
  --field-dark: #26251e;
  --field-dark-ink: #dfdedb;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-text: "Bricolage Grotesque", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1.2rem + 7vw, 7.5rem);

  --margin: 16px;
  --gap: 8px;
  --radius: 8px;
  --pad: 20px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --t-open: 1200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.board {
  padding: var(--margin);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.tile {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--pad);
  min-width: 0;
}
.tile-dark {
  background: var(--field-dark);
  color: var(--field-dark-ink);
}
.tile-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.tile-dark .display,
.tile-dark .head,
.tile-dark .lead,
.tile-dark .stat,
.tile-dark p,
.tile-dark li,
.tile-dark h2,
.tile-dark h3,
.tile-dark h4 {
  color: var(--field-dark-ink);
}
.tile-accent .display,
.tile-accent .head,
.tile-accent .lead,
.tile-accent .stat,
.tile-accent p,
.tile-accent li,
.tile-accent h2,
.tile-accent h3,
.tile-accent h4 {
  color: var(--accent-ink);
}
.tile-photo {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.tile-photo img,
.tile-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.display {
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.head {
  font-family: var(--font-display);
  font-size: var(--step-head);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead {
  font-size: var(--step-lead);
  line-height: 1.35;
  max-width: 40ch;
  font-weight: 500;
}
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }
p { max-width: 42ch; text-wrap: pretty; }
.tile > p,
.tile li { max-width: 42ch; }
.hero-action p,
.hero-support .lead,
.cta-main p { max-width: 36ch; }
p + p { margin-top: 0.85em; }
.tile-dark .muted { color: color-mix(in srgb, var(--field-dark-ink) 72%, transparent); }
.tile-accent .muted { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.control-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step-small);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn-on-accent {
  background: var(--accent-ink);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding-inline: 0;
  min-height: auto;
}
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.05); }
  .btn-on-accent:hover { filter: none; background: #f3f2ef; }
  a.link:hover { text-decoration-color: currentColor; }
}

.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--t-hover) ease;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.btn-lg { min-height: 3.25rem; padding-inline: 1.6rem; }

/* ----- Nav ----- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  min-height: 56px;
  position: sticky;
  top: 8px;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 28px;
  width: auto;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: var(--step-small);
  font-weight: 500;
}
.nav-links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* ----- Hero board ----- */
.hero-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.hero-name {
  container-type: inline-size;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-name .display {
  font-size: clamp(3rem, 10vw, 7rem);
  font-size: 30cqw;
  line-height: 0.88;
  white-space: nowrap;
}
.hero-statement .display {
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  max-width: 16ch;
}
.hero-lead { margin-top: 0.75rem; color: var(--muted); }
.hero-qualifier {
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1rem;
  max-width: 32ch;
}
/* Person behind the offer, shown at the points of ask */
.assessor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.assessor img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  flex: none;
}
.assessor p { display: grid; line-height: 1.3; max-width: none; }
.assessor strong { font-weight: 600; }
.assessor span { font-size: var(--step-small); }
.assessor-on-accent { color: var(--accent-ink); }
.assessor-on-accent span { color: var(--accent-ink); opacity: 0.85; }
.hero-action {
  align-items: flex-start;
}
.hero-examples {
  color: var(--accent-ink);
  font-weight: 500;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}
.hero-note { color: var(--accent-ink); max-width: 26ch; }
.hero-action {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 200px;
}
.hero-ui {
  min-height: 220px;
}
@media (min-width: 768px) {
  .hero-board {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(90px, auto);
  }
  .hero-name { grid-column: 1 / 3; grid-row: 1 / 2; }
  .hero-statement { grid-column: 3 / 9; grid-row: 1 / 2; }
  .hero-action { grid-column: 9 / 13; grid-row: 1 / 2; }
  .hero-ui { grid-column: 7 / 13; grid-row: 2 / 4; min-height: 280px; }
  .hero-live { grid-column: 1 / 7; grid-row: 2 / 4; }
  .hero-statement .display { font-size: 1.75rem; }
}
@media (min-width: 1100px) {
  .hero-name { grid-column: 1 / 4; }
  .hero-statement { grid-column: 4 / 9; }
  .hero-action { grid-column: 9 / 13; }
  .hero-live { grid-column: 1 / 6; }
  .hero-ui { grid-column: 6 / 13; }
  .hero-statement .display { font-size: clamp(2.2rem, 3.2vw, 3.4rem); }
}

/* Assessment explainer card (in the calculator's former slot) */
.live-map {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.live-map h3 {
  font-size: var(--step-lead);
  font-weight: 600;
  margin-bottom: 0;
}
.live-map p { margin: 0; }
ul.explore-lines {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.15rem;
  margin: 0;
  list-style: disc;
}
.explore-cta { margin-top: 0.25rem; }

/* Section shells */
.section-block {
  display: grid;
  gap: var(--gap);
}
.section-heading {
  padding: calc(var(--pad) * 1.2) var(--pad);
}
.section-heading .head { margin-bottom: 0.5rem; }

/* Intro */
.intro-grid {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .intro-wide { grid-column: 1 / 7; }
  .intro-col { grid-column: span 2; }
  .intro-grid .intro-col:nth-child(2) { grid-column: 7 / 13; }
  .intro-grid .intro-col:nth-child(3) { grid-column: 1 / 7; }
  .intro-grid .intro-col:nth-child(4) { grid-column: 7 / 13; }
  .intro-closer { grid-column: 1 / 13; }
}

/* Proof */
.proof-grid {
  display: grid;
  gap: var(--gap);
}
.cred-experience p {
  font-size: var(--step-lead);
  font-weight: 500;
  max-width: 62ch;
}
/* Build examples */
.build-grid {
  display: grid;
  gap: var(--gap);
}
.build-card h3 {
  font-size: var(--step-lead);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.build-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
}
@media (min-width: 800px) {
  .build-grid { grid-template-columns: repeat(3, 1fr); }
}
.proof-tile .stat {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 0.75rem;
}
@media (min-width: 700px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Features mosaic */
.features-mosaic {
  display: grid;
  gap: var(--gap);
}
.feature-tile h3 {
  font-size: var(--step-lead);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-tile a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
@media (min-width: 768px) {
  .features-mosaic {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(140px, auto);
  }
  .feat-a { grid-column: 1 / 7; grid-row: span 2; }
  .feat-b { grid-column: 7 / 13; }
  .feat-c { grid-column: 7 / 10; }
  .feat-d { grid-column: 10 / 13; }
  .feat-ui { grid-column: 1 / 5; min-height: 220px; }
  .feat-break { grid-column: 5 / 13; }
}

/* How it works — growing tiles */
.how-row {
  display: grid;
  gap: var(--gap);
  align-items: end;
}
.how-tile ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
  list-style: none;
  padding-left: 0;
}
.how-tile li {
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.4;
}
.how-icon {
  width: 32px;
  height: 32px;
  flex: none;
  padding: 6px;
  background: #e9e7e3;
  border-radius: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.how-tile h3 {
  font-size: var(--step-lead);
  font-weight: 600;
}
@media (min-width: 800px) {
  .how-row { grid-template-columns: repeat(3, 1fr); }
  .how-1 { min-height: 280px; }
  .how-2 { min-height: 340px; }
  .how-3 { min-height: 420px; }
}
@media (max-width: 799px) {
  .how-1, .how-2, .how-3 { min-height: 0; }
  .cta-main { min-height: 0; padding-block: 2rem; }
  .about-photo { min-height: 0; }
  .about-photo img { min-height: 240px; }
  .hero-ui { min-height: 180px; }
  .work-strip-photo img { min-height: 180px; }
  .section-block { gap: var(--gap); }
}

/* Work strips */
.work-stack {
  display: grid;
  gap: var(--gap);
}
.work-strip {
  display: grid;
  gap: var(--gap);
}
.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.section-cta .lead { font-weight: 600; }
.work-client {
  color: var(--muted);
  font-size: var(--step-small);
  margin: -0.4rem 0 0.85rem;
}
.work-strip-body h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.work-meta {
  display: grid;
  gap: 0.85rem;
}
.work-meta strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
@media (min-width: 900px) {
  .work-strip {
    grid-template-columns: 5fr 7fr;
    align-items: stretch;
  }
  .work-strip-photo { height: 100%; }
  .work-strip-photo img { height: 100%; min-height: 280px; object-fit: cover; }
}
@media (max-width: 899px) {
  .work-strip-photo img { height: 220px; width: 100%; object-fit: cover; }
}

/* Pricing sentence */
.pricing-grid {
  display: grid;
  gap: var(--gap);
}
.pricing-block {
  padding: clamp(2rem, 6vw, 4rem) var(--pad);
}
.pricing-block .head { margin-bottom: 0.75rem; }
.pricing-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.pricing-price {
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.pricing-block .btn { margin-top: 0.25rem; }
@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: 5fr 7fr;
  }
  /* The panel is much shorter than the assessment copy beside it:
     fit its height to its content instead of stretching it into a void. */
  .pricing-ui {
    align-self: start;
  }
  .pricing-ui [data-ui] { flex: none; }
}
.pricing-list {
  display: grid;
  gap: 0.35rem;
  font-size: var(--step-body);
  max-width: 42ch;
  padding-left: 1.1rem;
}

/* About */
.about-grid {
  display: grid;
  gap: var(--gap);
}
.about-highlights-heading {
  font-size: var(--step-lead);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.about-highlights {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.1rem;
}
.why-now-grid,
.outcomes-grid {
  display: grid;
  gap: var(--gap);
}
.why-now-sub {
  font-size: var(--step-lead);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.why-now-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.why-now-statement {
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.why-now-note { color: var(--muted); }
.why-now-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1rem;
}
.why-now-list li { line-height: 1.45; }
.why-now-list strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.why-now-list span { color: var(--muted); }
.why-now-close {
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.3;
}
@media (min-width: 800px) {
  .why-now-close { grid-column: 1 / -1; }
}
.case-impact {
  display: grid;
  gap: 0.3rem;
  padding-left: 1.1rem;
}
.outcome-tile h3 {
  font-size: var(--step-lead);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
@media (min-width: 800px) {
  .why-now-grid { grid-template-columns: repeat(3, 1fr); }
  .outcomes-grid { grid-template-columns: repeat(6, 1fr); }
  .outcome-tile { grid-column: span 2; }
  .outcome-wide { grid-column: span 3; }
  .outcomes-grid .outcome-tile:nth-child(2) { grid-column: span 3; }
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 4fr 5fr 3fr;
    align-items: stretch;
  }
  .about-photo { min-height: 320px; }
  .about-photo img { min-height: 320px; height: 100%; object-position: top center; }
}
.section-opener {
  min-height: 200px;
  max-height: 320px;
}
.section-opener img {
  min-height: 200px;
  max-height: 320px;
  width: 100%;
  object-fit: cover;
}

/* FAQ */
.faq-layout {
  display: grid;
  gap: var(--gap);
}
.faq-list details {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: var(--gap);
}
.faq-list details:last-child { margin-bottom: 0; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-q {
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.25;
  max-width: 36ch;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.faq-plus::before { width: 16px; height: 3px; top: 6.5px; left: 0; }
.faq-plus::after { width: 3px; height: 16px; top: 0; left: 6.5px; transition: transform var(--t-ui) var(--ease-out); }
.faq-list details[open] {
  background: var(--surface-2);
  color: var(--ink);
}
.faq-list details[open] .faq-plus::after { transform: rotate(90deg) scaleY(0); }
.faq-list details p {
  padding: 0 1.35rem 1.35rem;
  max-width: 52ch;
  font-size: var(--step-body);
}
@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: 4fr 8fr;
    align-items: start;
  }
  .faq-heading {
    position: sticky;
    top: 24px;
  }
}

/* CTA row */
.cta-row {
  display: grid;
  gap: var(--gap);
}
.cta-main {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.cta-main .head {
  max-width: 24ch;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}
main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.cta-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}
.cta-contact h3 {
  font-size: var(--step-lead);
  font-weight: 600;
}
.btn-on-dark {
  background: var(--field-dark-ink);
  color: var(--field-dark);
  word-break: break-all;
}
@media (min-width: 800px) {
  .cta-row {
    grid-template-columns: 7fr 5fr;
  }
  .cta-main, .cta-contact { min-height: 300px; }
}

/* Footer mark */
.site-footer {
  display: grid;
  gap: var(--gap);
  margin-top: 3rem;
}
.footer-mark {
  background: var(--field-dark);
  color: var(--field-dark-ink);
  padding: clamp(2rem, 6vw, 3.5rem) var(--pad);
}
.footer-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--field-dark-ink);
  max-width: none;
}
.footer-tag {
  margin-top: 0.75rem;
  color: var(--field-dark-ink);
  max-width: 42ch;
}

.footer-links {
  display: grid;
  gap: var(--gap);
}
.footer-cols {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
.footer-cols a {
  display: block;
  font-size: var(--step-small);
  text-decoration: none;
  margin-bottom: 0.35rem;
}
@media (hover: hover) and (pointer: fine) {
  .footer-cols a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad);
  background: var(--surface);
  border-radius: var(--radius);
}
.credits {
  font-size: var(--step-small);
  color: var(--muted);
  max-width: none;
  padding: 0 var(--pad) var(--pad);
}
.credits a { text-decoration: underline; text-underline-offset: 0.15em; }
@media (min-width: 800px) {
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

.breaks-grid {
  display: grid;
  gap: var(--gap);
}
.break-list {
  display: grid;
  gap: 0.85rem;
}
.break-list li {
  font-size: var(--step-body);
  max-width: 48ch;
  color: var(--ink);
}
@media (min-width: 900px) {
  .breaks-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .breaks-grid .section-heading { grid-column: 1 / 6; }
  .breaks-ui { grid-column: 6 / 13; min-height: 280px; }
  .breaks-list-tile { grid-column: 1 / 13; }
}

/* Interface fragments (the work product, drawn in code) */
.ui-tile {
  background: var(--surface-2);
  display: flex;
}
[data-ui] {
  background: #ffffff;
  color: #26251e;
  border: 1px solid #d8d5cf;
  border-radius: 6px;
  padding: 14px;
  width: 100%;
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-ui] .ui-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #e7e4de;
}
[data-ui] .ui-title { font-weight: 600; font-size: 15px; }
[data-ui] .ui-group { display: grid; gap: 6px; }
/* Panels that sit beside taller copy: spread their rows over the full
   height instead of clustering at the top above a pinned footer.
   The footer's margin-top:auto would absorb all the free space, so
   it has to go for space-between to work. */
.hero-ui [data-ui],
.breaks-ui [data-ui],
.feat-ui [data-ui],
.work-strip-ui [data-ui],
.pricing-ui [data-ui] { justify-content: space-between; }
.hero-ui [data-ui] .ui-foot,
.breaks-ui [data-ui] .ui-foot,
.feat-ui [data-ui] .ui-foot,
.work-strip-ui [data-ui] .ui-foot,
.pricing-ui [data-ui] .ui-foot { margin-top: 0; }
[data-ui] .ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
[data-ui] .ui-row .nums { font-variant-numeric: tabular-nums; font-weight: 600; }
[data-ui] .ui-bar {
  height: 6px;
  background: #eceae6;
  border-radius: 3px;
  overflow: hidden;
}
[data-ui] .ui-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
/* KPI figures: use when the numbers are different units and a shared
   bar would imply a scale that does not exist. */
[data-ui] .ui-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
[data-ui] .ui-stat {
  background: #f4f3f0;
  border-radius: 6px;
  padding: 12px;
  display: grid;
  gap: 2px;
  align-content: start;
}
[data-ui] .ui-stat-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
[data-ui] .ui-stat-num {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
[data-ui] .ui-stat-label {
  font-size: 13px;
  color: #5f5d55;
  line-height: 1.3;
}
[data-ui] .ui-tag {
  background: #eceae6;
  color: #26251e;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
[data-ui] .ui-tag-accent { background: var(--accent); color: #ffffff; }
[data-ui] .ui-tag-warn { background: #26251e; color: #ffffff; }
[data-ui] .ui-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #e7e4de;
  color: #5f5d55;
  font-size: 13px;
}
.hero-ui, .breaks-ui, .feat-ui, .work-strip-ui, .pricing-ui { min-height: 220px; }
@media (min-width: 900px) {
  .work-strip-ui { height: 100%; }
}

/* Motion */
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    animation: ad-rise var(--t-reveal) var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 90ms + 120ms);
  }
  .js [data-reveal].is-in {
    animation: ad-rise 700ms var(--ease-out) both;
  }
  .js .shutter[data-reveal].is-in {
    animation: ad-shutter 1100ms var(--ease-in-out) both;
  }
  .js .shutter[data-reveal].is-in img,
  .js .shutter[data-reveal].is-in video {
    animation: ad-settle 1500ms var(--ease-soft) both;
  }
}
@keyframes ad-rise {
  from { opacity: 0.01; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes ad-shutter {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}
@keyframes ad-settle {
  from { transform: scale(1.08); }
  to { transform: none; }
}

@media (max-width: 767px) {
  :root { --margin: 16px; --pad: 18px; }
  .hero-name .display { font-size: clamp(3rem, 16vw, 4.5rem); }
  .hero-statement .display { font-size: clamp(1.85rem, 8vw, 2.4rem); max-width: none; }
}
