/*
 * HYPRX phone composition. Load after the cinematic and sculpture styles.
 * The same story is read in a portrait sequence; previews retain every label,
 * finding and source. Desktop and tablet styles remain in their own layers.
 */
@media (max-width: 767px) {
  html { scroll-padding-top: 104px; }
  body { font-size: 16px; line-height: 1.75; }
  .wrap { width: calc(100% - 40px); }
  .section-space { padding-block: 76px; }
  .section-kicker { gap: 10px; margin-bottom: 24px; font-size: 11px; letter-spacing: .065em; }
  .section-kicker:before { display: none; }
  .micro-label { font-size: 11px; }

  /* A complete wordmark, contact action and native navigation fit at 320px. */
  .site-header {
    top: max(12px, env(safe-area-inset-top));
    width: calc(100% - 24px);
    height: 68px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #080c19ed;
  }
  .site-header .brand { padding-block: 12px; }
  .site-header .brand img { width: clamp(100px, 29.7vw, 128px); height: auto; }
  .site-header .header-cta {
    min-height: 44px;
    margin-left: auto;
    padding: 10px 11px;
    gap: 8px;
    font-size: 12px;
    border-radius: 5px;
  }
  .site-header .header-cta > span[aria-hidden] { width: 16px; height: 16px; }
  .nav-toggle { width: 44px; height: 44px; padding: 10px; border-radius: 5px; }
  .site-header nav { top: calc(100% + 8px); padding: 10px; background: #0a1022fa; }
  .site-header nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .site-header nav a { min-height: 48px; padding: 10px 8px; font-size: 14px; border-radius: 4px; }
  .site-header nav a:hover, .site-header nav a:focus-visible { background: #123bff19; }

  /* A phone-sized opening, with reading space and two easy-to-reach actions. */
  .hero { padding-top: 126px; }
  .hero:before { background-position: 65% 5%; opacity: .36; }
  .hero-halo { top: 70px; width: 700px; height: 720px; }
  .hero-rings { top: 390px; opacity: .4; }
  .hero-copy { width: calc(100% - 40px); max-width: 560px; text-align: left; }
  .eyebrow-pill {
    justify-content: flex-start;
    gap: 9px;
    padding: 8px 10px;
    margin-bottom: 26px;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: .025em;
  }
  .eyebrow-pill > span:last-child { font-size: 10px; }
  .hero h1 {
    max-width: 13ch;
    margin-bottom: 24px;
    font-size: clamp(39px, 10.9vw, 68px);
    line-height: 1.06;
    font-weight: 500;
    letter-spacing: -.06em;
    text-wrap: balance;
  }
  .hero-lede { max-width: 32ch; font-size: 18px; line-height: 1.6; letter-spacing: -.025em; margin-bottom: 16px; }
  .hero-context { max-width: 43ch; margin: 0; padding: 0; font-size: 15px; line-height: 1.75; color: #bec8e2; }
  .desktop-break { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .hero-actions .button {
    width: 100%;
    justify-content: space-between;
    min-height: 54px;
    padding: 14px 18px;
    font-size: 15px;
    gap: 18px;
  }

  /* Recompose the desktop constellation as an uninterrupted portrait preview. */
  .product-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    max-width: 560px;
    margin-top: 44px;
    padding: 0 0 30px;
    transform: none;
    transform-style: flat;
  }
  .stage-connections, .workspace-glow { display: none; }
  .preview-chip {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
    padding: 8px 11px;
    margin: 0 0 2px;
    font-size: 12px;
    line-height: 1.6;
    animation: none;
  }
  .workspace-card { grid-column: 1; grid-row: 2; width: 100%; border-radius: 12px; }
  .workspace-top { padding: 13px 16px; gap: 10px; min-height: 61px; border-radius: 12px 12px 0 0; }
  .workspace-brand { gap: 7px; font-size: 19px; }
  .workspace-card .axis-mark { width: 25px; height: 25px; font-size: 27px; }
  .preview-tag { padding: 5px 6px; font-size: 10px; letter-spacing: .025em; }
  .window-dots { gap: 4px; }
  .window-dots i { width: 4px; height: 4px; }
  .workspace-content { padding: 18px; }
  .question-preview { align-items: flex-start; gap: 9px; padding: 13px 11px; }
  .question-symbol { width: 24px; height: 24px; margin-top: 2px; padding: 3px; }
  .question-preview .micro-label { font-size: 10px; line-height: 1.6; letter-spacing: .015em; }
  .question-preview p { font-size: 15px; line-height: 1.6; margin-top: 6px; }
  .preview-columns { grid-template-columns: minmax(0, 1fr); gap: 25px; margin-top: 25px; }
  .preview-findings > .micro-label { font-size: 11px; margin-bottom: 18px; }
  .preview-findings > div { gap: 12px; margin-top: 18px; }
  .preview-findings i { width: 29px; height: 29px; font-size: 10px; }
  .preview-findings > div > span { font-size: 15px; line-height: 1.5; }
  .preview-findings small { font-size: 13px; line-height: 1.65; margin-top: 4px; }
  .preview-figure { display: block; padding: 16px; }
  .preview-figure > .micro-label { font-size: 11px; }
  .preview-figure svg { display: block; width: 100%; height: auto; aspect-ratio: 240 / 122; margin: 20px 0 8px; }
  .figure-caption { font-size: 11px; text-align: right; }
  .figure-key { justify-content: center; gap: 7px; margin-top: 13px; font-size: 11px; }
  .workspace-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 15px 18px;
    font-size: 12px;
    line-height: 1.6;
    border-radius: 0 0 12px 12px;
  }
  .floating-card, .vault-float.float-gentle, .expert-float.float-gentle {
    display: block;
    grid-column: 1;
    width: 100%;
    margin: 0;
    padding: 24px;
    transform: none;
    translate: none;
    animation: none;
  }
  .vault-float.float-gentle { grid-row: 3; }
  .expert-float.float-gentle { grid-row: 4; }
  .floating-card > .small-icon { width: 34px; height: 34px; margin-bottom: 18px; }
  .floating-card > .micro-label, .expert-float-heading .micro-label { font-size: 11px; }
  .floating-card h2, .vault-float h2, .expert-float h2 { font-size: 30px; line-height: 1.16; margin: 13px 0 22px; letter-spacing: -.045em; }
  .vault-float h2 br, .expert-float h2 br { display: initial; }
  .mini-sources { display: flex; flex-wrap: wrap; gap: 12px 17px; font-size: 13px; }
  .brief-list { gap: 13px; font-size: 14px; }
  .human-tag { padding-top: 18px; margin-top: 21px; font-size: 13px; }
  .stage-caption { position: static; grid-column: 1; grid-row: 5; padding: 2px 8px 0; margin: 0; font-size: 12px; text-align: left; }
  .hero-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 24px 0 30px;
    font-size: 11px;
    letter-spacing: .08em;
    text-align: left;
  }
  .hero-foot > span:not(.foot-cross) { display: flex; align-items: center; gap: 12px; }
  .hero-foot > span:not(.foot-cross):before { content: ''; width: 4px; height: 4px; border: 1px solid #9aafff99; rotate: 45deg; }
  .hero-foot .foot-cross, .hero-foot > a { display: none; }

  /* Each chapter has its own reading width and a full-size visual. */
  .axis-layout, .vault-layout, .services-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .axis-copy h2, .vault-copy h2, .services-heading h2, .center-heading h2, .contact-copy h2, .faq-intro h2 {
    font-size: clamp(35px, 8.8vw, 54px);
    line-height: 1.13;
    letter-spacing: -.05em;
    margin-bottom: 25px;
  }
  .axis-copy > p:not(.section-kicker), .vault-copy > p:not(.section-kicker), .services-copy p {
    max-width: 54ch;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
  }
  .inline-link { gap: 22px; min-height: 48px; font-size: 15px; }
  .axis-art { width: 100%; max-width: 430px; margin: 0; justify-self: center; translate: none; }
  .sculpture-viewport { width: 100%; aspect-ratio: 1; }
  .axis-sculpture { width: 100%; height: 100%; aspect-ratio: 1; }
  .art-label { flex-wrap: wrap; gap: 8px; margin: 4px 0 0; font-size: 10px; letter-spacing: 0; text-align: center; line-height: 1.7; }
  .axis-principles { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 44px; padding-top: 34px; }
  .axis-principles article { padding-left: 63px; }
  .principle-icon { width: 43px; height: 43px; }
  .axis-principles h3 { font-size: 23px; line-height: 1.3; margin-bottom: 11px; }
  .axis-principles p { font-size: 15px; line-height: 1.8; }
  .vault-copy { grid-row: 1; }
  .focus-card { padding-left: 18px; margin-top: 28px; }
  .focus-card > .micro-label { font-size: 10px; }
  .focus-card h3 { font-size: 28px; }
  .focus-card p { font-size: 15px; }
  .focus-tags { font-size: 11px; gap: 7px; }
  .vault-copy > p.context-note { font-size: 14px; line-height: 1.8; margin-top: 25px; }
  .vault-visual { width: 100%; max-width: 560px; padding: 20px; translate: none; }
  .vault-window-top { gap: 9px; padding-bottom: 18px; }
  .vault-window-top .micro-label { font-size: 10px; letter-spacing: .035em; }
  .vault-window-top > span:last-child { width: 17px; height: 17px; }
  .vault-document { padding: 3px 10px 20px; margin-top: 18px; }
  .vault-instrument { height: 218px; }
  .vault-document p { font-size: clamp(23px, 5.8vw, 30px); line-height: 1.45; margin-bottom: 21px; }
  .document-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .document-tags i { display: none; }
  .document-tags button { width: 100%; min-height: 46px; padding: 10px 3px; font-size: 12px; }
  .vault-accordions { margin-top: 20px; }
  .vault-accordions summary { min-height: 64px; padding-block: 19px; gap: 11px; font-size: 16px; }
  .vault-accordions details p { padding: 0 4px 21px 0; font-size: 15px; line-height: 1.8; }
  .vault-visual .visual-caption { padding-top: 19px; font-size: 12px; }

  .services-heading { text-align: left; margin-bottom: 33px; }
  .services-heading .section-kicker { justify-content: flex-start; }
  .services-heading > p:last-child { margin: 0; font-size: 16px; line-height: 1.8; }
  .services-copy { grid-row: 1; }
  .service-symbol { width: 60px; height: 60px; margin-bottom: 21px; }
  .services-copy h3 { font-size: 34px; line-height: 1.16; margin-bottom: 24px; }
  .services-copy h3 br { display: initial; }
  .services-copy > .button { width: 100%; min-height: 54px; justify-content: space-between; padding: 14px 16px; gap: 12px; font-size: 14px; }
  .study-visual { max-width: 560px; width: 100%; padding: 22px; }
  .study-visual-top { align-items: flex-start; gap: 12px; }
  .study-visual-top > .micro-label { max-width: 100%; font-size: 10px; }
  .study-field { margin: 15px 0 23px; translate: none; }
  .study-field svg { height: 150px; }
  .study-steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 15px; padding-bottom: 30px; }
  .study-steps small { font-size: 10px; line-height: 1.7; letter-spacing: .01em; margin-bottom: 8px; }
  .study-steps h3 { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
  .study-steps p { font-size: 15px; line-height: 1.8; }
  .study-visual-footer { padding-top: 21px; margin-top: 27px; font-size: 14px; }
  .study-visual-footer > span { font-size: 27px; line-height: 1.3; margin-top: 7px; }

  /* A vertical route reads naturally without shrinking four desktop columns. */
  .center-heading { text-align: left; }
  .center-heading .section-kicker { justify-content: flex-start; }
  .center-heading > p:last-child { font-size: 16px; line-height: 1.8; }
  .center-heading > p:last-child br { display: none; }
  .flow-timeline { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 36px; }
  .flow-timeline:before, .flow-timeline:after { display: none; }
  .flow-timeline li { padding-left: 65px; }
  .flow-node { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: 0; font-size: 11px; }
  .flow-timeline li:not(:last-child):after { content: ''; position: absolute; left: 21px; top: 52px; bottom: -23px; width: 1px; border: 0; background: linear-gradient(#859aff66, #123bff40); }
  .flow-timeline .micro-label { font-size: 11px; }
  .flow-timeline h3 { font-size: 24px; line-height: 1.25; margin: 9px 0 12px; }
  .flow-timeline p { font-size: 15px; line-height: 1.8; }

  /* Keep the original form intact, with a comfortable single-column field flow. */
  .contact-section { padding-top: 12px; padding-bottom: 76px; }
  .contact-shell { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 30px; border-radius: 14px; }
  .contact-copy { padding-top: 0; }
  .contact-copy .section-kicker { font-size: 10px; gap: 8px; letter-spacing: .035em; }
  .contact-copy h2 { font-size: clamp(37px, 9vw, 52px); }
  .contact-copy h2 br { display: block; }
  .contact-copy > p:not(.section-kicker) { font-size: 16px; line-height: 1.8; margin-bottom: 18px; }
  .welcome-note { gap: 12px; padding-top: 23px; margin-top: 25px; }
  .welcome-note > span { font-size: 28px; }
  .welcome-note p { font-size: 14px; line-height: 1.8; }
  .direct-contact { margin-top: 26px; }
  .direct-contact .micro-label { font-size: 10px; }
  .direct-contact a { gap: 10px; min-height: 44px; font-size: 15px; margin-top: 3px; }
  .contact-panel { padding-top: 27px; }
  .contact-panel h3 { font-size: 26px; line-height: 1.3; }
  .required-note { margin-bottom: 25px; font-size: 12px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .field { margin-bottom: 22px; }
  .field label { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
  .optional { display: inline-block; font-size: 10px; }
  .field input, .field select, .field textarea { min-height: 54px; padding: 13px 12px; font-size: 16px; line-height: 1.6; }
  .field select { padding-right: 24px; }
  .field textarea { min-height: 166px; }
  .submit-button { min-height: 56px; padding-inline: 16px; font-size: 15px; }
  .form-note { font-size: 12px; line-height: 1.8; }
  .form-email-fallback { min-height: 48px; gap: 10px; font-size: 13px; line-height: 1.7; }
  .form-status { font-size: 14px; line-height: 1.8; }

  .faq-section { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 68px; }
  .faq-intro h2 br { display: block; }
  .faq-intro > p:last-child { font-size: 15px; }
  .faq-list summary { padding-block: 22px; font-size: 16px; gap: 18px; }
  .faq-list details p { padding: 0 10px 24px 0; font-size: 15px; line-height: 1.8; }
  .footer-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 30px 24px; }
  .footer-top .brand { justify-self: start; }
  .footer-top .brand img { width: 150px; }
  .footer-top p { font-size: 14px; line-height: 1.8; }
  .footer-top nav { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin: 0; font-size: 14px; }
  .footer-top nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 17px; font-size: 11px; }
  .footer-bottom > a { min-height: 44px; display: inline-flex; align-items: center; margin: 0; }
  .site-footer { padding-bottom: 120px; }
  .footer-wordmark { bottom: 27px; width: 100%; }
  .motion-toggle { left: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 10px; min-width: 44px; min-height: 44px; }
  .motion-toggle #motion-toggle-label { display: none; }
}

@media (max-width: 359px) {
  .wrap, .hero-copy { width: calc(100% - 32px); }
  .site-header { gap: 8px; }
  .site-header .header-cta { padding-inline: 7px; gap: 5px; }
  .hero h1 { font-size: 38px; }
  .hero-lede { font-size: 17px; }
  .eyebrow-pill { gap: 7px; font-size: 10px; padding-inline: 8px; }
  .eyebrow-pill > span:last-child { font-size: 10px; }
  .workspace-top { padding-inline: 13px; gap: 8px; }
  .workspace-content { padding: 15px; }
  .preview-figure { padding: 13px; }
  .floating-card, .vault-float.float-gentle, .expert-float.float-gentle { padding: 22px; }
  .vault-visual { padding: 17px; }
  .vault-document { padding-inline: 8px; }
  .vault-window-top .micro-label { font-size: 10px; }
  .vault-instrument { height: 204px; }
  .document-tags { gap: 5px; }
  .document-tags button { font-size: 11px; }
  .study-visual { padding: 19px; }
  .study-steps li { gap: 12px; }
  .study-steps h3 { font-size: 20px; }
  .study-visual-footer > span { font-size: 25px; }
  .contact-shell { padding: 25px 18px; }
  .contact-copy h2 { font-size: 36px; }
  .contact-panel h3 { font-size: 25px; }
  .contact-copy .section-kicker { font-size: 10px; }
}
