/* Mobile baseline; expand the composition only when there is room. */
.prototype-home {
  --mint: #087f6b;
  --mint-dark: #066451;
  --muted: #53645e;
  --r-lg: 24px;
  --r-md: 18px;
  background: #f7f9f8;
}
.prototype-home .container,
.prototype-home .site-footer > .container {
  width: min(calc(100% - 32px), var(--max));
}
.prototype-main .hero { padding-top: 28px; }
.prototype-main .hero h1 {
  font-size: clamp(2.65rem, 10.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.prototype-main .section-title,
.prototype-main .contact-card h2,
.prototype-portfolio .portfolio-intro h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.prototype-main .hero-description,
.prototype-main .section-copy,
.prototype-main .contact-card p {
  font-size: 1rem;
  line-height: 1.65;
}
.prototype-main .hero-description { margin-top: 20px; }
.prototype-main .hero-actions { margin-top: 24px; align-items: center; gap: 16px; }
.prototype-main .hero-actions .btn-outline {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.9rem;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.prototype-main .hero-media { height: 300px; box-shadow: none; }
.prototype-main .hero-card { inset: auto 12px 12px; padding: 12px 14px; border-radius: 12px; }
.prototype-main .eyebrow { letter-spacing: 0.12em; font-weight: 700; }
.prototype-main .services-grid { gap: 12px; margin-top: 24px; }
.prototype-main .service { min-height: 0; padding: 24px; box-shadow: none; }
.prototype-main .service h3 { font-size: 1.5rem; line-height: 1.2; }
.prototype-main .service li { margin-block: 6px; }
.prototype-main .service ul { padding-left: 20px; margin-bottom: 0; }
.prototype-main .service:hover { transform: none; box-shadow: none; }
.prototype-main .price-card { min-height: 0; border-radius: 16px; padding: 24px; }
.prototype-main .price-card h3 { margin-top: 16px; }
.prototype-main .price-pill { padding: 0; background: transparent; font-size: 0.9rem; }
.prototype-main .contact-card { border-radius: 24px; padding: 28px 24px; gap: 28px; background: var(--dark); }
.prototype-main .contact-card::after { display: none; }
.prototype-main .contact-actions { min-width: 0; flex-wrap: wrap; }
.prototype-main .proof { margin-top: 28px; }
.prototype-main .proof-item strong { line-height: 1.35; letter-spacing: -0.02em; }
.prototype-portfolio .portfolio-entry__title { font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.03em; }
.prototype-portfolio .portfolio-entry__body .rich-text { font-size: 1rem; line-height: 1.7; }
.prototype-home .site-footer a,
.prototype-home .site-footer button { min-height: 30px; padding-block: 4px; display: inline-flex; align-items: center; }
.prototype-home .site-footer .footer-column,
.prototype-home .site-footer .language-list { gap: 2px; }
.prototype-home .modal input,
.prototype-home .modal textarea,
.prototype-home .modal select { font-size: 16px; }
@media (max-width: 600px) {
  .prototype-home .site-header .container {
    width: calc(100% - 24px);
    grid-template-columns: 44px minmax(0, 1fr) 180px;
    grid-template-areas: "menu brand quote";
    gap: 8px;
    padding-block: 8px;
    min-height: 64px;
    position: relative;
  }
  .prototype-home .menu-group { position: static; }
  .prototype-home .menu-toggle { width: 44px; height: 44px; padding: 10px; }
  .prototype-home .menu-toggle span { width: 24px; left: 10px; }
  .prototype-home .site-header .brand { width: 100%; min-width: 0; }
  .prototype-home .site-header .brand img { width: 100%; max-width: 110px; height: auto; }
  .prototype-home .site-nav {
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-width: none;
    min-width: 0;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
  }
  .prototype-home .site-nav > a { min-height: 44px; display: flex; align-items: center; }
  .prototype-home .site-nav .language-switch { position: relative; align-self: stretch; border-top: 1px solid var(--line); padding-top: 8px; }
  .prototype-home .language-current { min-height: 44px; }
  .prototype-home .site-nav .language-options { position: static; box-shadow: none; margin-top: 4px; }
  .prototype-home .site-nav .language-options button { min-height: 44px; }
  .prototype-main .service-feature-image { min-height: 200px; height: 200px; }
  .prototype-main .service-feature-copy { padding: 24px; }
  .prototype-main .service-feature-copy h3 { font-size: 1.6rem; line-height: 1.15; }
  .prototype-main .workflow { padding: 12px 20px; }
  .prototype-main .flow small { font-size: 0.875rem; }
}
@media (max-width: 350px) {
  .prototype-home .site-header .container { grid-template-columns: 44px 1fr; grid-template-areas: "menu brand" "quote quote"; }
  .prototype-home .site-header .brand { justify-self: end; width: 100px; }
  .prototype-home .site-header .header-quote { justify-self: end; }
  .prototype-main > section { scroll-margin-top: 132px; }
}
@media (min-width: 651px) {
  .prototype-main .hero { padding-top: 40px; }
  .prototype-main .hero h1 { font-size: clamp(3.5rem, 6vw, 6rem); }
  .prototype-main .hero-media { height: 460px; }
  .prototype-main .section-title,
  .prototype-main .contact-card h2,
  .prototype-portfolio .portfolio-intro h1 { font-size: clamp(2.5rem, 4vw, 4rem); }
  .prototype-main .contact-card { padding: 44px; }
}
@media (hover: none) {
  .prototype-main .project:hover img,
  .prototype-main .hero-media:hover img,
  .prototype-home .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 600px) {
  .prototype-home .menu-toggle span:nth-child(1) { top: 14px; }
  .prototype-home .menu-toggle span:nth-child(3) { bottom: 14px; }
}
.prototype-home .site-footer a,
.prototype-home .site-footer button { overflow-wrap: anywhere; min-width: 0; }
@media (min-width: 601px) and (max-width: 980px) {
  .prototype-home .site-header .container {
    grid-template-columns: 44px minmax(0, 1fr) 180px;
    grid-template-areas: "menu brand quote";
  }
}

/* Keep spacing between related content smaller than section boundaries. */
.prototype-main .pricing-layout { gap: 24px; }
.prototype-main .pricing-grid { margin-top: 0; }
.prototype-main .pricing-intro .section-copy { margin-bottom: 20px; }
.prototype-main .portfolio-grid { margin-top: 24px; }
.prototype-main .hero-grid { gap: 24px; }
.prototype-main .service-note { margin-block: 20px; }
.prototype-main .service-feature { margin-top: 20px; }
.prototype-main > section { padding-block: 24px; }
.prototype-main .contact { padding-bottom: 28px; }
@media (min-width: 981px) {
  .prototype-main > section { padding-block: 32px; }
  .prototype-main .hero-grid { gap: 40px; }
  .prototype-main .pricing-layout { column-gap: 36px; }
  .prototype-main .section-split { gap: 32px; }
  .prototype-main .contact { padding-bottom: 32px; }
}

.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed; inset: auto 16px 16px; z-index: 150;
  max-width: 960px; margin-inline: auto; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 8px 40px #10201d26;
}
.cookie-banner h2, .cookie-preferences h2 { margin: 0 0 12px; font-size: 1.3rem; letter-spacing: -.02em; }
.cookie-banner p, .cookie-preferences p { font-size: .95rem; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--mint-dark); border-radius: 24px; background: white; color: var(--mint-dark); font: inherit; font-weight: 600; cursor: pointer; }
.cookie-actions button:hover { background: var(--mint-light); }
.cookie-actions button:focus-visible, .cookie-option input:focus-visible { outline: 2px solid var(--mint-dark); outline-offset: 3px; }
.cookie-preferences { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; padding: 24px; color: var(--ink); }
.cookie-preferences::backdrop { background: #10201d80; }
.cookie-preferences h3 { font-size: 1rem; margin: 20px 0 8px; }
.cookie-option { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.cookie-option input { width: 20px; height: 20px; accent-color: var(--mint-dark); }
.cookie-settings-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.cookie-settings-link:hover, .cookie-settings-link:focus-visible { color: var(--mint-dark); text-decoration-color: currentColor; }
@media(max-width:600px) { .cookie-banner { inset: auto 8px 8px; padding: 18px; max-height: 70dvh; overflow: auto; } .cookie-actions button { flex: 1 1 auto; } }
