/* The shared responsive layer: EN, RO and IT use the same breakpoints. */
@media (hover: hover) and (pointer: fine) {
  .project-link:hover .project-image > img { transform: scale(1.02); }
}

@media (min-width: 801px) and (max-width: 1200px) {
  :root { --section-space: 76px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 6%; padding-block: 44px; }
  .hero h1 { font-size: clamp(3.25rem, 5.8vw, 4.5rem); }
  .about, .contact, .faq { gap: 5%; }
  .steps.email-first { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .service-detail > summary { grid-template-columns: minmax(0, 1fr) minmax(110px, 160px); gap: 22px; }
  .case-story { gap: 28px; }
  .case-story h2 { font-size: 1.5rem; }
  .project--featured .project-link { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 28px; }
  .project--featured .project-heading { margin-right: 28px; }
  .project--featured .project-link > p { padding-right: 28px; }
  .project--featured .project-image { min-height: 340px; aspect-ratio: auto; }
  .artifact-grid { gap: 20px; }
}

@media (max-width: 1050px) {
  .header { min-height: 80px; padding-block: 12px; flex-wrap: wrap; gap: 16px; }
  .brand { font-size: 1.6rem; }
  .languages { gap: 0; flex-shrink: 0; }
  .languages a { padding: 4px; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 0 24px; }
  .nav a { padding-block: 8px; min-height: 44px; }
  .js .nav-toggle { display: block; margin-left: auto; flex-shrink: 0; background: transparent; color: var(--color-text); border: 1px solid var(--color-line); border-radius: var(--radius-control); padding: 10px 14px; min-height: 44px; font-size: .875rem; }
  .js .nav-toggle[aria-expanded='true'] { background: var(--color-brand); color: var(--color-on-dark); }
  .js .nav { display: none; position: absolute; inset: 100% 0 auto; width: auto; background: var(--color-surface); padding: 18px var(--gutter) 24px; border-bottom: 1px solid var(--color-line); box-shadow: 0 12px 20px #241a1e12; max-height: calc(100dvh - 80px); overflow-y: auto; }
  .js .nav.is-open { display: flex; flex-direction: column; gap: 0; }
  .js .nav a { padding-block: 12px; min-height: 48px; }
  .no-js .header { position: relative; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  :root { --section-space: 65px; }
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 40px; }
  .hero h1 { font-size: clamp(3.25rem, 7.5vw, 4.4rem); max-width: 700px; }
  .hero-intro { max-width: 620px; }
  .hero-intro > p { font-size: 1.0625rem; }
  .hero-intro .text-link { display: inline-flex; margin-left: 24px; }
  .audience { flex-direction: column; gap: 8px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 25px; margin-bottom: 35px; }
  .section-heading > p { max-width: 600px; }
  .projects { gap: 40px 24px; }
  .project-image { aspect-ratio: 4 / 3; }
  .project-heading h3 { font-size: 1.5rem; }
  .project--featured .project-link { display: block; }
  .project--featured .project-image { min-height: 0; aspect-ratio: 1.7; }
  .project--featured .project-heading { margin: 28px 28px 14px; }
  .project--featured .project-link > p { max-width: 65ch; padding: 0 28px 32px; }
  .projects > .project:last-child:not(.project--featured) .project-image { aspect-ratio: 16 / 9; }
  .service-detail > summary { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .service-expand { justify-self: start; }
  .service-title { font-size: 1.5rem; }
  .about, .faq, .contact { grid-template-columns: 1fr; gap: 35px; }
  .about-copy .large-copy { font-size: 1.25rem; }
  .steps, .steps.email-first { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .faq h2 { max-width: 650px; }
  .contact > div > p { max-width: 600px; }
  .contact form { max-width: 720px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .case-story { grid-template-columns: 1fr; gap: 40px; }
  .artifact-intro { grid-template-columns: 1fr; gap: 24px; }
  .artifact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .artifact-web { grid-column: 1 / -1; }
  .case-client-scope { grid-template-columns: 1fr; gap: 20px; }
  .case-client-screens { grid-template-columns: 1fr; gap: 36px; }
  .case-screens-copy > p:last-child { max-width: 60ch; }
  .case-screen-pair { max-width: 600px; margin-inline: auto; gap: 30px; }
  .case-client-enquiry { flex-direction: column; align-items: flex-start; gap: 28px; }
  footer { grid-template-columns: 1fr; }
  footer > p { text-align: left; }
  footer > div { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; --section-space: 56px; }
  .header { gap: 8px; }
  .brand { font-size: 1.35rem; }
  .js .nav-toggle { padding: 9px 10px; }
  .languages a { min-width: 40px; font-size: .8125rem; }
  .no-js .languages { margin-left: auto; }
  .no-js .nav { gap: 0 20px; font-size: .875rem; }
  .hero-grid { gap: 26px; padding-block: 26px 34px; }
  .hero h1 { font-size: clamp(2.35rem, 9.7vw, 3.6rem); line-height: 1.12; overflow-wrap: normal; }
  .hero-intro > p { font-size: 1rem; line-height: 1.7; }
  .hero-intro .text-link { display: flex; margin: 12px 0 0; padding-block: 12px; }
  .hero-image { width: calc(100% + 2 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); aspect-ratio: 16 / 9; }
  .motion-toggle { right: 14px; bottom: 14px; padding: 10px 12px; }
  .audience { padding-block: 22px; }
  .audience p { font-size: 1rem; }
  h2, .contact h2 { font-size: clamp(2rem, 7.5vw, 2.75rem); line-height: 1.15; }
  .section-heading { gap: 20px; margin-bottom: 30px; }
  .projects { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .project-image, .projects > .project:last-child:not(.project--featured) .project-image, .project--featured .project-image { aspect-ratio: 4 / 3; }
  .project-heading { margin-top: 18px; gap: 14px; }
  .project-heading h3 { font-size: 1.6rem; }
  .project-image > .project-badge { left: 10px; top: 10px; max-width: calc(100% - 20px); }
  .project-badge { font-size: .75rem; }
  .project--featured .project-heading { margin: 24px 22px 14px; }
  .project--featured .project-heading h3 { font-size: 2rem; }
  .project--featured .project-link > p { padding: 0 22px 28px; }
  .brows-phone { border-width: 3px; border-radius: 11px; }
  .brows-window-bar { font-size: 8px; }
  .service-title { font-size: 1.4rem; }
  .service-detail > summary { gap: 10px; padding-block: 26px; }
  .service-description { margin-top: 10px; }
  .service-content { padding-bottom: 28px; }
  .service-content ul { grid-template-columns: 1fr; gap: 12px; }
  .service-cta { width: 100%; }
  .about, .faq, .contact { gap: 30px; }
  .about-copy .large-copy { font-size: 1.2rem; }
  .about-copy > p + p { margin-top: 20px; }
  .steps, .steps.email-first { grid-template-columns: 1fr; gap: 26px; }
  .steps.email-first article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 22px; }
  .steps.email-first h3 { margin: 0; font-size: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  input, select, textarea { min-height: 52px; }
  .form-actions { align-items: stretch; }
  .contact .button { width: 100%; }
  .email { margin-top: 24px; }
  .contact > div > p { margin-top: 20px; }
  .button { min-height: 52px; padding: 14px 24px; }
  .privacy-link { margin-top: 16px; }
  .case-title { padding-top: 28px; padding-bottom: 40px; }
  .case-title h1 { font-size: clamp(2.65rem, 10vw, 4rem); margin-top: 24px; }
  .case-photo { margin-inline: 0; }
  .case-photo > img { aspect-ratio: 4 / 3; }
  .case-story { gap: 30px; }
  .case-links > div { flex-direction: column; }
  .case-links .button { width: 100%; }
  .artifact-intro { margin-bottom: 30px; }
  .artifact-grid { gap: 28px 18px; }
  .artifact-grid figcaption { margin-top: 12px; font-size: .8125rem; }
  .case-client-preview { aspect-ratio: 4 / 3; }
  .case-client-preview .brows-window { top: 23%; left: 6%; width: 84%; }
  .case-client-preview .brows-phone { right: 6%; bottom: 8%; width: 25%; border-width: 3px; border-radius: 11px; }
  .case-client-scope ul { grid-template-columns: 1fr; gap: 12px; }
  .case-screen-pair { gap: 18px; }
  .case-device { border-width: 3px; border-radius: 15px; }
  .case-screen-pair figcaption { font-size: .8125rem; margin-top: 14px; }
  .case-client-enquiry .button { width: 100%; }
  .next-project { padding-block: 44px; }
  .next-project > a { gap: 16px; }
  .privacy h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); }
  footer { padding-block: 36px 32px; gap: 20px; }
  footer > div { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 359px) {
  .header { display: grid; grid-template-columns: 1fr auto; gap: 8px; min-height: 112px; }
  .languages { grid-column: 1 / -1; justify-self: end; }
  .languages a { min-width: 44px; }
  .no-js .nav { grid-column: 1 / -1; }
  html { scroll-padding-top: 140px; }
  .js .nav { max-height: calc(100dvh - 112px); }
  .hero h1 { font-size: 2.3rem; }
  .artifact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .project-link:hover .project-image > img { transform: none; }
}
