/* The coral palette and house geometry from the original Huismax project card. */
.huismax-case {
  --case-accent: #bd5362; --case-stage: #ff8b91; --case-ink: #994553; --case-soft: #f9e7e5;
  --case-border: rgb(153 69 83 / 22%); --case-line: #ecd1d2; --case-separator: #eededd;
  --case-active: #f5d0d0; --case-interface: #f5cfcc; --case-dashed: #e7cbcc;
}
.huismax-case .case-hero h1 { font-size: clamp(75px, 8.7vw, 136px); }
.huismax-case .case-hero h1 > span { color: var(--navy); }
.huismax-case .case-hero-visual { min-height: 540px; padding: 65px 30px 95px; }
.huismax-case .case-hero-visual::before, .huismax-case .case-hero-visual::after { content: none; }
.hm-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.huismax-case .case-hero-app { box-shadow: 0 24px 40px -24px rgb(88 29 40 / 28%); }
.huismax-case .case-hero-app .hm-ui { border: 0; }
.hm-hero-card { position: absolute; z-index: 2; left: 20px; bottom: 60px; display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: #fff; border-radius: 9px; box-shadow: 0 10px 25px -12px rgb(88 29 40 / 25%); min-width: 285px; transform: rotate(2deg); }
.hm-hero-card > div { display: grid; gap: 2px; line-height: 1.45; }
.hm-hero-card small { font-size: 8px; color: var(--muted); }
.hm-hero-card strong { font-size: 14px; font-weight: 650; letter-spacing: -.035em; }
.hm-hero-card div > span { font-size: 9px; color: var(--muted); }
.hm-hero-card-arrow { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); margin-left: 8px; }
.hm-hero-card-arrow .case-icon { width: 15px; height: 15px; flex-basis: 15px; }
.hm-context-avatar { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; border-radius: 50%; background: #f6d3d3; color: var(--case-ink); }
.hm-context-avatar .case-icon { width: 18px; height: 18px; flex-basis: 18px; }
.huismax-case .case-project-meta { grid-template-columns: 1.15fr 1.25fr 1fr .75fr; }
.huismax-case .case-flow-panel { min-height: 500px; }
.huismax-case .case-flow-copy h3 { font-size: clamp(23px, 2.05vw, 30px); }
.huismax-case .case-flow-interface { align-self: stretch; display: grid; align-items: center; }
.huismax-case .case-feature h3 { min-height: 78px; }
.huismax-case .case-feature > p { min-height: 110px; }
.hm-valuation-note { color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 16px; }
.huismax-case .case-foundation-copy .eyebrow, .huismax-case .case-foundation-copy .text-link { color: var(--coral); }
.huismax-case .case-system { color: var(--coral); }
.huismax-case .case-system-core { background: var(--coral); }
.huismax-case .case-core-petal { background: rgb(153 69 83 / 13%); }
.huismax-case .case-cta { background: var(--coral); }
.hm-cta-art { width: min(100%, 230px); }
.hm-cta-art svg { width: 100%; height: auto; }
.hm-case-links { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 18px; }
.hm-case-links .case-all-projects { margin-top: 0; }
@media (min-width: 1450px) {
  .huismax-case .case-hero-visual { padding-inline: 45px; min-height: 590px; }
}
@media (max-width: 1100px) {
  .huismax-case .case-hero-visual { padding-inline: 19px; }
  .huismax-case .case-hero h1 { font-size: 8.6vw; }
  .huismax-case .case-hero-statement { font-size: 27px; }
}
@media (max-width: 850px) {
  .huismax-case .case-hero h1 { font-size: clamp(85px, 15.8vw, 135px); }
  .huismax-case .case-hero-visual { min-height: 510px; padding: 55px 55px 85px; }
  .huismax-case .case-hero-credit { position: static; width: auto; margin-top: 20px; }
  .huismax-case .case-feature h3 { min-height: 78px; }
  .huismax-case .case-feature > p { min-height: 125px; }
  .hm-cta-art { align-self: start; margin-top: 45px; }
}
@media (max-width: 600px) {
  .huismax-case .case-hero h1 { font-size: clamp(60px, 19.9vw, 105px); }
  .huismax-case .case-hero-statement { font-size: clamp(24px, 6.4vw, 32px); }
  .huismax-case .case-hero-visual { padding: 50px 14px 82px; min-height: 410px; }
  .hm-hero-card { min-width: 235px; left: 14px; bottom: 42px; padding: 11px 12px; gap: 8px; }
  .hm-hero-card .hm-context-avatar { width: 28px; height: 28px; }
  .hm-hero-card strong { font-size: 13px; }
  .hm-hero-card small { font-size: 7px; }
  .hm-hero-card div > span { font-size: 8px; }
  .hm-hero-card-arrow { margin-left: 0; width: 23px; height: 23px; }
  .huismax-case .case-project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .huismax-case .case-flow-tabs button { flex-direction: column; min-height: 69px; gap: 5px; font-size: 9px; padding-inline: 5px; }
  .huismax-case .case-flow-context strong { font-size: 11px; }
  .huismax-case .case-flow-context strong span { font-size: 8px; }
  .huismax-case .case-flow-context small { font-size: 8px; }
  .huismax-case .case-flow-status { padding-left: 47px; font-size: 8px; }
  .huismax-case .case-flow-copy { min-height: 270px; }
  .huismax-case .case-flow-copy h3 { font-size: 26px; }
  .huismax-case .case-flow-connection { font-size: 7px; }
  .huismax-case .case-feature h3, .huismax-case .case-feature > p { min-height: 0; }
  .hm-cta-art { width: 85px; margin: 0 0 24px; }
  .hm-case-links { flex-wrap: wrap; gap: 0; padding-top: 12px; }
  .hm-case-links .text-link { font-size: 10px; }
}
