/* Responsive layout layer. Brand colors, copy, artwork and section order stay in
   their original files. rem limits preserve browser text-size preferences. */
:root {
  --page-width: 200rem;
  --gutter: clamp(1rem, 4vw, 10rem);
  --inset: clamp(1rem, 2.4vw, 5rem);
  --space: clamp(1rem, 1.8vw, 3.5rem);
  --section-space: clamp(2rem, 3.5vw, 7rem);
  --body-size: clamp(1rem, .85rem + .28vw, 1.5rem);
  --small-size: clamp(.8125rem, .75rem + .18vw, 1.125rem);
  --label-size: clamp(.6875rem, .625rem + .16vw, 1rem);
  --heading-size: clamp(2rem, 1.4rem + 2vw, 5rem);
}
html { scroll-padding-top: clamp(6rem, 9vw, 11rem); }
body { font-size: var(--body-size); }
main, section, article, figure, nav, header, footer, .hero-copy,
.hero-engine, .engine-step > div, .platform-copy, .product-concept,
.about-copy, .pricing-availability { min-width: 0; }
h1, h2, h3, p, a, span, small { overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img, svg, video { max-width: 100%; }
img { height: auto; }
.section-wrap { width: calc(100% - 2 * var(--gutter)); max-width: var(--page-width); padding-inline: var(--inset); margin-inline: auto; }
.header { position: relative; z-index: 20; width: 100%; max-width: none; height: auto; min-height: clamp(5.25rem, 7vw, 10rem); padding-block: .5rem; padding-inline: max(calc(var(--gutter) + var(--inset)), calc((100% - var(--page-width)) / 2 + var(--inset))); gap: var(--space); }
.header .brand { flex: 0 0 auto; }
.header .uploaded-logo { width: clamp(8.5rem, 12vw, 18rem); height: auto; aspect-ratio: 17 / 7; }
.header nav { position: static; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(.75rem, 1.5vw, 3rem); font-size: var(--small-size); }
.header nav > a { display: inline-flex; align-items: center; min-height: 44px; font-size: inherit; padding: .5rem 0; }
.header nav .nav-contact { margin-left: 0; padding: .75rem 1.25rem; }
.menu-toggle { min-width: 64px; min-height: 48px; padding: .75rem; font-size: 1rem; cursor: pointer; }
.button, .hero-actions .button { min-height: 48px; max-width: 100%; padding: clamp(.875rem, 1vw, 1.5rem) clamp(1rem, 1.5vw, 2rem); gap: var(--space); font-size: var(--small-size); }
.button span { font-size: 1.25em; flex-shrink: 0; }
.text-link, .hero-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; white-space: normal; font-size: var(--small-size); line-height: 1.5; }
input, textarea, select { min-width: 0; max-width: 100%; min-height: 48px; font: inherit; font-size: max(1rem, var(--body-size)); }
.eyebrow, .hero > .eyebrow, .platform .eyebrow { font-size: var(--label-size); line-height: 1.65; letter-spacing: .12em; }
.hero { padding-top: clamp(1.5rem, 2.3vw, 5rem); }
.hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 8rem); padding-block: clamp(1.5rem, 2.5vw, 5rem); }
.hero-copy h1 { font-size: clamp(2.25rem, 1.1rem + 3.3vw, 8.5rem); line-height: 1.07; letter-spacing: -.045em; max-width: 20ch; margin: 0 0 var(--space); }
.hero-copy > p { font-size: var(--body-size); max-width: 55ch; line-height: 1.75; margin: 0 0 var(--space); }
.hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: clamp(.75rem, 1.5vw, 2.5rem); }
.hero-engine { padding: clamp(1rem, 1.8vw, 4rem); container-type: inline-size; overflow: visible; }
.engine-label, .engine-signoff { font-size: var(--label-size); line-height: 1.6; letter-spacing: .08em; gap: .75rem; }
.engine-label { margin-bottom: var(--space); }
.engine-step { padding: clamp(.75rem, 1.1vw, 2rem); gap: clamp(.5rem, 1vw, 1.5rem); margin-top: clamp(.75rem, 1vw, 1.5rem); }
.engine-step:nth-of-type(4) { margin-left: 3%; }
.engine-step:nth-of-type(5) { margin-left: 6%; }
.engine-symbol { flex: 0 0 1.2em; width: auto; height: auto; font-size: clamp(1.5rem, 1.1rem + 1vw, 3.25rem); }
.engine-kicker { font-size: var(--label-size); line-height: 1.5; letter-spacing: .07em; }
.engine-step strong { font-size: clamp(1.125rem, .9rem + .65vw, 2.5rem); line-height: 1.25; }
.engine-arrow { flex: 0 0 auto; }
.engine-signoff { margin-top: var(--space); }
@container (max-width: 22rem) {
  .engine-step:nth-of-type(4), .engine-step:nth-of-type(5) { margin-left: 0; }
  .engine-arrow { display: none; }
}
.hero-foot, .work-foot, .work-project-label, .concept-label { display: flex; flex-wrap: wrap; gap: .75rem var(--space); align-items: center; }
.hero-foot { padding-block: clamp(1rem, 1.5vw, 2rem); }
.hero-foot, .hero-foot a { font-size: var(--label-size); line-height: 1.6; }
.hero-foot > span, .hero-foot a { max-width: none; }
.services, .selected-work, .pricing, .about, .contact { padding-block: var(--section-space); }
.services, .about, .contact { margin-block: var(--space); }
.section-heading { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space); margin-bottom: var(--space); }
.section-heading h2, .work-heading h2, .pricing-heading h2, .about h2 { font-size: var(--heading-size); letter-spacing: -.035em; line-height: 1.15; }
.section-heading p, .service > p, .work-heading > p, .work-item p,
.platform-copy > p, .platform-copy > p.platform-secondary,
.pricing-heading > p, .pricing-availability > p, .about-copy > p:not(.lead),
.principles p, .contact p { font-size: var(--body-size); line-height: 1.75; max-width: 60ch; }
.service-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--space); }
.service, .service + .service { padding: clamp(1.25rem, 1.8vw, 3rem); border-left: 0; }
.service h3 { font-size: clamp(1.6rem, 1.15rem + .85vw, 3.125rem); line-height: 1.2; min-height: 0; margin-bottom: 1rem; }
.service-top { margin-bottom: 1rem; font-size: var(--label-size); }
.service-icon { height: auto; font-size: clamp(1.75rem, 1.25rem + 1vw, 3.5rem); }
.service-tags { font-size: var(--label-size); line-height: 1.8; letter-spacing: .07em; }
.work-heading, .pricing-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: var(--space); margin-bottom: var(--space); }
.work-heading > p, .pricing-heading > p { max-width: 48ch; }
.work-project { padding: var(--space) var(--space) 0; }
.work-project-label, .work-number, .work-type { font-size: var(--label-size); line-height: 1.6; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space); padding-block: var(--space); }
.work-item + .work-item { border: 0; padding: 0; }
.work-item h3 { font-size: clamp(1.75rem, 1.25rem + 1vw, 3.75rem); }
.screenshot-bar, .project-screenshot figcaption, .screenshot-enlarge { font-size: var(--label-size); line-height: 1.5; }
.screenshot-bar { flex-wrap: wrap; gap: .5rem; padding: .75rem; }
.screenshot-trigger img, .crm-preview-link > img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.work-foot { padding-block: var(--space); }
.work-foot > span, .work-foot a { font-size: var(--small-size); line-height: 1.7; max-width: 60ch; }
.work-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.platform-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 10rem); padding-block: var(--section-space); }
.platform h2 { font-size: clamp(2.5rem, 1.6rem + 2.4vw, 7rem); letter-spacing: -.035em; line-height: 1.1; }
.coming-soon, .platform small, .concept-disclaimer { font-size: var(--small-size); line-height: 1.7; }
.product-concept { margin: 0; width: 100%; max-width: none; padding: 0; container-type: inline-size; }
.concept-label, .concept-label > span:last-child { font-size: var(--label-size); line-height: 1.6; letter-spacing: .08em; }
.concept-window { transform: none; will-change: auto; }
.crm-preview-top { flex-wrap: wrap; padding: clamp(.75rem, 1vw, 1.5rem); gap: .75rem; }
.crm-preview-top .mini-brand { flex-wrap: wrap; min-width: 0; }
.crm-preview-top .mini-brand > span:last-child, .crm-preview-badge { font-size: var(--label-size); line-height: 1.5; letter-spacing: .07em; }
.crm-preview-top .uploaded-logo { width: clamp(6rem, 8vw, 12rem); height: auto; aspect-ratio: 17 / 7; }
.crm-preview-cta { padding: clamp(.875rem, 1.2vw, 2rem); font-size: var(--small-size); gap: 1rem; min-height: 48px; }
@container (max-width: 26rem) { .crm-preview-top { align-items: flex-start; flex-direction: column; } }
.pricing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: var(--space); }
.pricing-rate, .pricing-availability { padding: clamp(1.25rem, 2.5vw, 5rem); }
.pricing-rate h3, .pricing-availability h3 { font-size: clamp(1.75rem, 1.25rem + 1vw, 3.75rem); max-width: 26ch; }
.pricing-amount { flex-wrap: wrap; }
.pricing-amount > span:first-child { font-size: clamp(4rem, 2.5rem + 3.5vw, 10rem); }
.pricing-amount > span:last-child { font-size: var(--body-size); }
.pricing-card-top, .pricing-currency, .pricing-scope span, .pricing-status { font-size: var(--label-size); }
.pricing-fine, .pricing-availability > small { font-size: var(--small-size); max-width: 58ch; }
.pricing-availability .text-link { font-size: var(--small-size); }
.about, .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 10rem); }
.about-copy .lead { font-size: clamp(1.5rem, 1.1rem + .85vw, 3rem); max-width: 42ch; }
.hawaii-stamp, .principles span, .contact-note { font-size: var(--label-size); line-height: 1.8; }
.principles > div { padding: 1rem 0 1rem 2.5rem; }
.principles h3 { font-size: var(--body-size); }
.contact h2 { font-size: clamp(2.5rem, 1.6rem + 2.4vw, 7rem); letter-spacing: -.035em; }
.email-link { max-width: 28ch; font-size: clamp(1.125rem, 1rem + .8vw, 2.75rem); gap: 1rem; min-height: 48px; overflow-wrap: anywhere; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem var(--space); padding-block: var(--space); }
.footer p { display: block; }
.footer p, .footer > span, .footer > a:last-child { font-size: var(--small-size); line-height: 1.6; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.screenshot-dialog { width: min(94vw, 160rem); max-width: calc(100% - 1rem); max-height: 94dvh; padding: clamp(.75rem, 1.5vw, 2rem); }
.screenshot-dialog-toolbar { gap: .75rem; flex-wrap: wrap; }
.screenshot-dialog-toolbar > span, .screenshot-dialog > p { font-size: var(--small-size); }
.screenshot-close { min-height: 48px; font-size: var(--small-size); }
.screenshot-dialog > img { max-height: 74dvh; height: auto; }
/* Six labels plus the logo require this much space at readable text sizes. */
@media (max-width: 72rem) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: .75rem; background: transparent; color: var(--ink); }
  .header nav { display: none; position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 5.25rem); overflow-y: auto; padding: 1rem calc(var(--gutter) + var(--inset)); flex-direction: column; align-items: stretch; gap: .25rem; background: var(--paper); border-block: 1px solid var(--line); box-shadow: 0 15px 20px #20382e12; }
  .header nav.open { display: flex; }
  .header nav > a { font-size: 1rem; padding: .75rem; }
  .header nav .nav-contact { margin: .5rem 0 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { max-width: 22ch; }
  .hero-engine { width: 100%; }
  .section-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .section-heading > .eyebrow { grid-column: 1 / -1; }
  .section-heading > p { grid-column: auto; }
}
/* Below this point two text/media columns no longer have comfortable measures. */
@media (max-width: 56rem) {
  .platform-inner, .about, .contact-grid, .pricing-grid, .work-grid,
  .work-heading, .pricing-heading { grid-template-columns: minmax(0, 1fr); }
  .product-concept { max-width: 48rem; justify-self: center; }
  .work-item + .work-item { border-top: 1px solid var(--line); padding-top: var(--space); }
}
@media (max-width: 36rem) {
  .section-heading { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { text-align: center; }
  .hero > .eyebrow { justify-content: center; }
  .hero-copy h1 { margin-inline: auto; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-engine { text-align: left; }
  .hero-foot { align-items: flex-start; }
  .hero-foot a { text-align: left; }
  .work-project-label { flex-direction: column; align-items: flex-start; }
  .footer { align-items: flex-start; }
  .footer > .brand { flex-basis: 100%; }
}
