.founder-card > div {
  min-width: 0;
}

.brand img {
  width: clamp(190px, 15.5vw, 225px);
}

/* Compact desktop: keep the primary action visible without changing mobile or wide desktop. */
@media (min-width: 821px) and (max-width: 1180px) and (min-height: 621px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
    gap: clamp(24px, 3vw, 36px);
    padding: clamp(106px, 14vh, 126px) clamp(24px, 4vw, 44px) 142px;
  }

  .hero-content {
    max-width: 700px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(44px, 5vw, 58px);
    line-height: 1;
  }

  .hero-copy {
    margin-bottom: 22px;
    font-size: clamp(15.5px, 1.8vw, 18px);
    line-height: 1.45;
  }

  .hero-panel {
    max-width: none;
    padding: 18px;
  }

  .panel-topline,
  .match-score {
    margin-bottom: 16px;
  }

  .match-score {
    padding-bottom: 14px;
  }

  .match-score strong {
    font-size: clamp(42px, 4.6vw, 50px);
  }

  .signal-list {
    gap: 9px;
  }

  .signal-list p {
    gap: 8px;
    font-size: 13px;
    line-height: 1.32;
  }

  .hero-stats article {
    padding: 18px 20px;
  }
}

/* Short standard desktops such as 1280 x 720 need a denser first viewport. */
@media (min-width: 1181px) and (max-width: 1320px) and (min-height: 621px) and (max-height: 800px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: clamp(32px, 3.2vw, 42px);
    padding: 108px 48px 142px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(52px, 4.5vw, 58px);
    line-height: 1;
  }

  .hero-copy {
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.45;
  }

  .hero-panel {
    padding: 20px;
  }

  .panel-topline,
  .match-score {
    margin-bottom: 17px;
  }

  .match-score {
    padding-bottom: 15px;
  }

  .match-score strong {
    font-size: 50px;
  }

  .signal-list {
    gap: 10px;
  }

  .signal-list p {
    font-size: 14px;
    line-height: 1.34;
  }

  .hero-stats article {
    padding: 20px 22px;
  }
}

@media (orientation: landscape) and (max-width: 1180px) and (max-height: 620px) {
  html,
  body {
    background: linear-gradient(180deg, #fbfcf8 0%, var(--paper) 44%, #ffffff 100%);
  }

  body {
    min-width: 100%;
    overflow-x: clip;
  }

  .site-header {
    top: max(8px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    gap: clamp(8px, 1.7vw, 16px);
    min-height: clamp(46px, 10.8svh, 56px);
    padding: clamp(5px, 1.4svh, 8px) clamp(8px, 1.5vw, 12px);
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.94);
  }

  .brand img {
    width: clamp(158px, 20vw, 184px);
  }

  .site-nav {
    gap: clamp(2px, 0.6vw, 5px);
    font-size: clamp(11px, 1.35vw, 12px);
  }

  .site-nav a {
    min-height: clamp(32px, 8.2svh, 38px);
    padding: clamp(7px, 1.7svh, 9px) clamp(8px, 1.4vw, 11px);
    white-space: nowrap;
  }

  .site-nav .nav-cta {
    padding-right: clamp(10px, 1.6vw, 14px);
    padding-left: clamp(10px, 1.6vw, 14px);
  }

  .hero {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    margin: 0;
    align-items: stretch;
    overflow: clip;
    overflow-clip-margin: 96px;
    background: #03110f;
  }

  .hero::after {
    right: calc(-1 * env(safe-area-inset-right));
    left: calc(-1 * env(safe-area-inset-left));
    height: clamp(18%, 24svh, 30%);
    background: linear-gradient(0deg, rgba(8, 31, 28, 0.94), rgba(8, 31, 28, 0));
  }

  .hero-image {
    inset: 0 auto 0 calc(-1 * env(safe-area-inset-left));
    width: calc(100% + env(safe-area-inset-left) + env(safe-area-inset-right));
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 78% center;
    transform: none;
  }

  .hero-overlay {
    inset: 0 calc(-1 * env(safe-area-inset-right)) 0 calc(-1 * env(safe-area-inset-left));
    background:
      radial-gradient(circle at 82% 48%, rgba(8, 120, 111, 0.2), transparent 30%),
      linear-gradient(90deg, rgba(4, 13, 12, 0.96) 0%, rgba(4, 13, 12, 0.86) 44%, rgba(4, 13, 12, 0.34) 100%),
      linear-gradient(0deg, rgba(4, 13, 12, 0.8), transparent 46%);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 3vw, 26px);
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    margin: 0 auto;
    padding-top: clamp(68px, 17svh, 92px);
    padding-right: max(clamp(18px, 4.5vw, 44px), env(safe-area-inset-right));
    padding-bottom: clamp(106px, 25svh, 132px);
    padding-left: max(clamp(18px, 4.5vw, 44px), env(safe-area-inset-left));
  }

  .hero-content {
    max-width: min(640px, 72vw);
  }

  .eyebrow {
    margin-bottom: clamp(6px, 1.4svh, 9px);
    font-size: clamp(11px, 1.6vw, 13px);
    line-height: 1.2;
  }

  h1 {
    max-width: 680px;
    margin-bottom: clamp(10px, 2.2svh, 15px);
    font-size: clamp(29px, 4.45vw, 40px);
    line-height: 0.99;
  }

  .hero-copy {
    max-width: min(590px, 66vw);
    margin-bottom: clamp(12px, 2.6svh, 16px);
    font-size: clamp(12.5px, 1.55vw, 14.5px);
    line-height: 1.34;
  }

  .hero-actions {
    gap: clamp(8px, 1.8vw, 12px);
  }

  .button {
    min-height: clamp(38px, 9svh, 44px);
    padding: clamp(9px, 2svh, 11px) clamp(14px, 2.3vw, 18px);
    font-size: clamp(13px, 1.55vw, 14px);
  }

  .hero-panel {
    display: none;
  }

  .hero-stats {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--white);
    background: rgba(8, 31, 28, 0.66);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px) saturate(1.16);
  }

  .hero-stats article {
    min-height: clamp(46px, 12.4svh, 60px);
    padding: clamp(8px, 2.1svh, 12px) clamp(10px, 1.8vw, 16px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
  }

  .hero-stats article:last-child {
    border-right: 0;
  }

  .hero-stats strong {
    margin-bottom: 2px;
    color: var(--lime);
    font-size: clamp(13px, 1.9vw, 19px);
    line-height: 1.05;
  }

  .hero-stats span {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(9.5px, 1.35vw, 12px);
    line-height: 1.22;
  }
}

@media (orientation: landscape) and (min-width: 860px) and (max-width: 1180px) and (max-height: 620px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 248px);
  }

  .hero-content {
    max-width: min(650px, 61vw);
  }

  .hero-copy {
    max-width: min(590px, 58vw);
  }

  .hero-panel {
    display: block;
    align-self: center;
    padding: clamp(14px, 2.6vw, 18px);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(12, 35, 32, 0.74), rgba(6, 18, 17, 0.58));
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  }

  .panel-topline {
    margin-bottom: clamp(10px, 2svh, 14px);
    font-size: clamp(11px, 1.3vw, 13px);
  }

  .match-score {
    gap: 10px;
    margin-bottom: clamp(10px, 2svh, 14px);
    padding-bottom: clamp(10px, 2svh, 14px);
  }

  .match-score strong {
    font-size: clamp(34px, 5.3vw, 46px);
  }

  .signal-list {
    gap: 8px;
  }

  .signal-list p {
    grid-template-columns: 14px 1fr;
    gap: 8px;
    font-size: clamp(11px, 1.25vw, 13px);
    line-height: 1.25;
  }

  .signal-list span {
    width: 14px;
    height: 14px;
    margin-top: 2px;
  }
}

@media (orientation: landscape) and (max-width: 760px) and (max-height: 460px) {
  .site-header {
    min-height: 50px;
  }

  .brand img {
    width: clamp(152px, 24vw, 166px);
  }

  .hero-grid {
    padding-top: clamp(70px, 19svh, 80px);
    padding-bottom: clamp(98px, 27svh, 120px);
  }

  .hero-content {
    max-width: min(560px, 100%);
  }

  .hero-copy {
    max-width: min(540px, 100%);
  }

  h1 {
    font-size: clamp(28px, 4.8vw, 32px);
  }
}

@media (max-width: 520px) {
  .brand {
    max-width: 200px;
  }

  .brand img {
    width: clamp(176px, 49vw, 194px);
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .site-header {
    min-height: 60px;
  }

  .brand img {
    width: clamp(176px, 49vw, 198px);
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-grid {
    min-height: 100svh;
    padding-top: clamp(104px, 16svh, 128px);
    padding-bottom: clamp(112px, 17svh, 148px);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero .eyebrow {
    max-width: 96%;
    margin-bottom: 10px;
    font-size: clamp(12px, 3.35vw, 14px);
    line-height: 1.35;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 10.8vw, 46px);
    line-height: 1.03;
  }

  .hero-copy {
    max-width: 100%;
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.55;
  }

  .hero-panel {
    display: none;
  }

  .hero-stats {
    left: 16px;
    right: 16px;
    bottom: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 8px;
  }

  .hero-stats article {
    min-height: 70px;
    padding: 12px 9px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .hero-stats article:last-child {
    border-right: 0;
  }

  .hero-stats strong {
    font-size: clamp(15px, 4.2vw, 20px);
    line-height: 1.06;
  }

  .hero-stats span {
    font-size: clamp(9.5px, 2.7vw, 11px);
    line-height: 1.25;
  }

  .section {
    padding-top: clamp(58px, 15vw, 76px);
    padding-bottom: clamp(58px, 15vw, 76px);
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading p,
  .feature-copy p,
  .contact p {
    font-size: 16px;
    line-height: 1.55;
  }

  .collab-card,
  .system-main,
  .audience-grid article,
  .flow-steps article {
    min-height: 0;
    padding: 20px;
  }

  .module-number,
  .steps span,
  .audience-label {
    margin-bottom: 18px;
  }

  .system-strip,
  .role-strip {
    gap: 8px;
  }

  .system-strip span,
  .role-strip span {
    width: 100%;
    padding: 10px 12px;
  }

  .feature-band {
    gap: 28px;
  }

  .board-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }

  .flow-visual {
    --radar-size: min(312px, calc(100vw - 88px));
    --radar-ring-outer: var(--radar-size);
    --radar-ring-inner: calc(var(--radar-size) * 0.72);
    min-height: clamp(330px, 92vw, 420px);
    height: clamp(330px, 92vw, 420px);
  }

  .match-radar {
    width: var(--radar-size);
    height: var(--radar-size);
  }

  .radar-center {
    width: clamp(84px, 24vw, 96px);
    height: clamp(84px, 24vw, 96px);
  }

  .radar-center strong {
    font-size: clamp(22px, 6.2vw, 26px);
  }

  .radar-center span {
    font-size: 10.5px;
  }

  .radar-node > span {
    min-width: clamp(72px, 20vw, 88px);
    min-height: 32px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .radar-node > span::before {
    width: 6px;
    height: 6px;
    margin-right: 6px;
  }

  .flow-steps article {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .flow-steps article span {
    width: 40px;
    height: 40px;
  }

  .flow-steps article::before {
    left: 40px;
    top: 68px;
  }

  .founder-card {
    gap: 24px;
  }

  .contact-form {
    gap: 14px;
    padding: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

@media (max-width: 380px) and (orientation: portrait) {
  .hero h1 {
    font-size: clamp(35px, 10vw, 40px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-stats {
    left: 14px;
    right: 14px;
  }

  .hero-stats article {
    padding-right: 7px;
    padding-left: 7px;
  }
}

@media (orientation: landscape) and (max-width: 760px) and (max-height: 460px) {
  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .collab-grid,
  .system-showcase,
  .audience-grid,
  .role-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collab-card,
  .system-main,
  .audience-grid article,
  .flow-steps article {
    min-height: 0;
    padding: 18px;
  }

  .module-number,
  .steps span,
  .audience-label {
    margin-bottom: 16px;
  }

  .feature-band,
  .process-flow,
  .founder-card,
  .contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flow-visual {
    --radar-size: min(360px, calc(100vw - 112px));
    --radar-ring-outer: var(--radar-size);
    --radar-ring-inner: calc(var(--radar-size) * 0.72);
    min-height: 360px;
    height: 360px;
  }

  .match-radar {
    width: var(--radar-size);
    height: var(--radar-size);
  }

  .founder-photo {
    width: min(220px, 42vw);
  }

  .contact-form {
    padding: 20px;
  }
}
@media (max-width: 820px) {
  .site-header {
    align-items: center;
    color: var(--ink);
    background: rgba(248, 251, 246, 0.95);
    box-shadow: 0 1px 0 var(--line);
  }

  .nav-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(8, 120, 111, 0.16);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #ecf7ef);
    box-shadow: 0 10px 24px rgba(7, 19, 18, 0.08);
  }

  .nav-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-cta {
    min-height: 44px;
    border: 0;
    padding: 13px 12px;
    text-align: left;
  }

  .site-nav .nav-cta {
    margin-top: 6px;
    text-align: center;
  }
}
