/* QUAZE home — local composition on the existing brand foundations. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body.home-page { margin: 0; min-width: 20rem; background: var(--qz-color-white); color: var(--quaze-ink); }
.home-page h1, .home-page h2, .home-page h3, .home-page p { margin: 0; }
.home-page img { display: block; max-width: 100%; }
.home-page a { color: inherit; text-decoration: none; }
.home-page svg { flex-shrink: 0; }
.home-container { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.home-section { padding-block: clamp(5rem, 8.5vw, 8.5rem); scroll-margin-top: 1rem; }
.home-page h2 { font-size: clamp(2rem, 3.7vw, 3.5rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.12; text-wrap: balance; }
.home-page h3 { font-size: clamp(1.4rem, 2vw, 1.625rem); letter-spacing: -.035em; line-height: 1.2; }
.home-page p { font-size: 1.125rem; line-height: 1.6; }
.home-page :where(a, button):focus-visible { outline: 3px solid var(--quaze-blue); outline-offset: 5px; box-shadow: none; }
.home-skip { position: fixed; z-index: 30; top: .75rem; left: .75rem; padding: .75rem 1rem; color: var(--quaze-ink); background: var(--quaze-acid); border: 2px solid var(--quaze-ink); transform: translateY(-180%); }
.home-skip:focus { transform: translateY(0); }
.home-header { position: sticky; z-index: 10; top: 0; background: var(--qz-color-white); border-bottom: 1px solid rgb(23 45 215 / 10%); }
.home-header__inner { min-height: 6rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.home-brand { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 3rem; }
.home-brand img { width: 8.125rem; height: auto; }
.home-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.75rem); }
.home-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; font-size: 1rem; text-underline-offset: .35em; }
.home-nav a:hover { color: var(--quaze-blue); text-decoration: underline; text-decoration-thickness: 2px; }
.home-hero {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgb(23 45 215 / 10%) 1px, transparent 1px),
    linear-gradient(rgb(23 45 215 / 10%) 1px, transparent 1px),
    radial-gradient(circle at 82% 45%, rgb(23 45 215 / 35%), transparent 30rem),
    var(--qz-color-blue-950);
  background-size: 4rem 4rem, 4rem 4rem, auto, auto;
  color: white;
  overflow: clip;
}
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: center; padding-block: clamp(4rem, 7vw, 7rem); min-height: 43rem; }
.home-hero__copy { position: relative; z-index: 1; }
.home-hero h1 { color: white; max-width: 15ch; font-size: clamp(3.25rem, 5.4vw, 5rem); line-height: 1.04; letter-spacing: -.065em; font-weight: 750; text-wrap: pretty; }
.home-hero h1 span { display: block; color: var(--quaze-acid); }
.home-hero p { max-width: 34rem; color: rgb(255 255 255 / 78%); margin-top: 1.75rem; font-size: 1.2rem; line-height: 1.55; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; max-width: 100%; min-height: 3.875rem; padding: 1.125rem 1.5rem; border: 2px solid var(--quaze-ink); border-radius: var(--qz-radius-sm); background: var(--quaze-acid); color: var(--quaze-ink) !important; box-shadow: 7px 7px 0 var(--quaze-ink); font-family: var(--font-heading); font-size: 1rem; font-weight: 750; line-height: 1.3; }
.home-button svg, .home-project__link svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-hero .home-button { margin-top: 2.5rem; }
.home-hero a:focus-visible { outline-color: var(--quaze-acid); outline-offset: 10px; }
.home-system { position: relative; width: calc(100% + 3rem); max-width: 32rem; margin-left: -1rem; aspect-ratio: 1; }
.home-system__drawing { display: block; width: 100%; height: 100%; overflow: visible; }
.home-system__orbit { stroke: rgb(255 255 255 / 20%); stroke-width: 1.5; }
.home-system__track { stroke: rgb(255 255 255 / 25%); stroke-width: 2; }
.home-system__path { stroke: var(--quaze-acid); stroke-width: 2; stroke-linecap: round; }
.home-projects h2 { margin-bottom: 3.5rem; }
.home-projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.home-project { min-width: 0; display: flex; flex-direction: column; }
.home-project__visual { position: relative; display: grid; align-items: center; justify-items: center; aspect-ratio: 1.45; min-width: 0; border-radius: var(--qz-radius-sm); overflow: hidden; }
.home-project__visual--selouu { background: #f6eee5; }
.home-project__visual--uzachat { background: #eeeafa; }
.home-project__visual--biblicard { background: #f7e3bf; }
.home-project__logo { position: relative; z-index: 1; object-fit: contain; }
.home-project__logo--selouu { width: 92%; height: auto; }
.home-project__logo--uzachat { width: 91%; height: auto; }
.home-project__logo--biblicard { width: 36%; height: auto; }
.home-project__ring { position: absolute; width: 95%; aspect-ratio: 1; border: 1px dashed rgb(223 78 36 / 25%); border-radius: 50%; }
.home-project__ring::after { position: absolute; inset: 1.25rem; content: ""; border: 1px dashed rgb(223 78 36 / 14%); border-radius: 50%; }
.home-project__conversation { position: absolute; width: 74%; height: 63%; border: 1px solid rgb(91 69 214 / 19%); border-radius: 3rem 3rem 3rem .25rem; transform: rotate(-9deg); }
.home-project__conversation::after { position: absolute; inset: .7rem -.7rem -.7rem .7rem; content: ""; border: 1px solid rgb(91 69 214 / 10%); border-radius: inherit; }
.home-project__game-orbit { position: absolute; width: 58%; aspect-ratio: 1; border: 1px solid rgb(217 99 58 / 19%); border-radius: 50%; }
.home-project__game-orbit::after { position: absolute; inset: -1.75rem; content: ""; border: 1px solid rgb(217 99 58 / 11%); border-radius: 50%; }
.home-project__body { display: flex; flex-direction: column; flex-grow: 1; padding-top: 1.75rem; }
.home-project__body p { color: var(--qz-color-slate-500); margin-top: .875rem; margin-bottom: 1.4rem; }
.home-project__link { align-self: flex-start; margin-top: auto; min-height: 2.75rem; display: inline-flex; align-items: center; gap: .7rem; color: var(--quaze-blue) !important; font-size: 1rem; font-weight: 600; text-underline-offset: .3em; }
.home-project__link:hover { text-decoration: underline; }
.home-services { background: var(--qz-color-blue-50); }
.home-services__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: clamp(3rem, 7vw, 7.5rem); }
.home-services h2 { max-width: 11ch; }
.home-service { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.5rem; padding-block: 2rem; border-top: 1px solid rgb(23 45 215 / 18%); }
.home-service:first-child { padding-top: .25rem; border-top: none; }
.home-service:last-child { padding-bottom: 0; }
.home-service__icon { stroke: var(--quaze-blue); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.home-service p { margin-top: .85rem; color: var(--qz-color-slate-500); }
.home-about { padding-block: clamp(4rem, 7vw, 6rem); background: var(--qz-color-blue-50); }
.home-about__grid { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: clamp(2.25rem, 5vw, 4.5rem); align-items: center; max-width: 62rem; }
.home-about__portrait { width: 12rem; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.home-about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.home-about h2 { max-width: 38rem; margin: 0; font-size: clamp(2.6rem, 5vw, 4.65rem); line-height: 1.02; letter-spacing: -.05em; }
.home-about p { max-width: 43rem; margin-top: 1.2rem; color: var(--qz-color-slate-500); font-size: 1.04rem; line-height: 1.7; }
.home-about p + p { margin-top: 1.2rem; }
.home-contact { background: var(--quaze-blue); color: white; }
.home-contact__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.home-contact h2 { color: white; max-width: 14ch; font-size: clamp(2.4rem, 4.6vw, 4rem); }
.home-contact p { max-width: 32rem; margin-top: 1.5rem; color: white; font-size: 1.2rem; }
.home-contact .home-button { justify-self: end; }
.home-contact a:focus-visible { outline-color: var(--quaze-acid); outline-offset: 10px; }
.home-footer { padding-block: 3rem 1.75rem; }
.home-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; }
.home-footer__links { display: flex; align-items: center; gap: 2rem; }
.home-footer__links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.125rem; }
.home-footer__links a:last-child { justify-content: center; width: 2.75rem; }
.home-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; border-top: 1px solid var(--qz-color-slate-100); padding-top: 1.5rem; color: var(--qz-color-slate-500); }
.home-footer__bottom p, .home-footer__bottom a { font-size: .8rem; line-height: 1.6; }
.home-footer__bottom a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.home-footer a:hover { color: var(--quaze-blue); }
@media (min-width: 90rem) {
  .home-hero__grid { min-height: 45rem; }
}
@media (max-width: 70rem) {
  .home-container { width: min(100% - 4rem, 76rem); }
  .home-hero__grid { min-height: 39rem; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .home-hero h1 { font-size: clamp(3.1rem, 5.6vw, 4.25rem); }
  .home-system { width: calc(100% + 1rem); }
  .home-projects__grid { gap: 1.5rem; }
  .home-contact__grid { gap: 2rem; grid-template-columns: minmax(0, 1fr) auto; }
  .home-contact .home-button { max-width: 21rem; }
}
@media (max-width: 53rem) {
  .home-container { width: min(100% - 3rem, 76rem); }
  .home-header__inner { min-height: 5.25rem; gap: 1.25rem; }
  .home-brand img { width: 6.75rem; }
  .home-nav { gap: 1.1rem; }
  .home-nav a { font-size: .9rem; }
  .home-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); padding-block: 4rem; }
  .home-hero h1 { font-size: 3.1rem; }
  .home-hero p { font-size: 1.1rem; }
  .home-system { width: calc(100% + 2.5rem); margin-left: -1.5rem; }
  .home-button { font-size: .9rem; padding: 1rem 1.125rem; gap: .875rem; }
  .home-services__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-services h2 { max-width: 20ch; }
  .home-services__list { max-width: 42rem; }
  .home-about__grid { grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; }
  .home-about__portrait { width: 10rem; }
  .home-contact__grid { grid-template-columns: 1fr; }
  .home-contact .home-button { justify-self: start; max-width: 100%; }
  .home-footer__legal { order: 3; flex-basis: 100%; }
}
@media (max-width: 42rem) {
  html { scroll-padding-top: 8.5rem; }
  .home-container { width: calc(100% - 2.5rem); }
  .home-section { padding-block: 4.5rem; }
  .home-header__inner { flex-wrap: wrap; gap: 0; padding-block: .625rem .25rem; }
  .home-brand { min-height: 2.75rem; }
  .home-brand img { width: 6.5rem; }
  .home-nav { width: 100%; justify-content: space-between; gap: .5rem; }
  .home-nav a { font-size: .8125rem; }
  .home-hero__grid { min-height: 0; grid-template-columns: 1fr; padding-block: 3.75rem 1.75rem; gap: 1.75rem; }
  .home-hero h1 { font-size: clamp(2.8rem, 8.5vw, 3.5rem); max-width: 15ch; }
  .home-hero p { font-size: 1.125rem; margin-top: 1.5rem; max-width: 33rem; }
  .home-hero .home-button { margin-top: 2rem; }
  .home-button { font-size: .875rem; min-height: 3.75rem; }
  .home-system { justify-self: center; width: 79%; max-width: 23rem; margin-left: 0; margin-top: -.5rem; }
  .home-page h2 { font-size: 2.3rem; }
  .home-projects h2 { max-width: 13ch; margin-bottom: 2.5rem; }
  .home-projects__grid { grid-template-columns: 1fr; gap: 3rem; }
  .home-project__visual { aspect-ratio: 1.6; }
  .home-project__logo--selouu { width: 86%; }
  .home-project__logo--uzachat { width: 85%; }
  .home-project__logo--biblicard { width: 31%; }
  .home-project__body { padding-top: 1.5rem; }
  .home-project__body p { margin-bottom: .875rem; }
  .home-services__grid { gap: 2.5rem; }
  .home-services h2 { max-width: 15ch; }
  .home-service { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; padding-block: 1.75rem; }
  .home-service__icon { width: 2.25rem; height: 2.25rem; }
  .home-service h3 { font-size: 1.375rem; }
  .home-service p { font-size: 1.0625rem; }
  .home-about h2 { font-size: clamp(2.6rem, 5vw, 4.65rem); }
  .home-contact__grid { gap: 2rem; }
  .home-contact h2 { font-size: 2.65rem; max-width: 13ch; }
  .home-contact p { font-size: 1.125rem; }
  .home-footer { padding-block: 2.5rem 1.5rem; }
  .home-footer__top { align-items: flex-start; flex-direction: column; gap: 1.25rem; padding-bottom: 1.5rem; }
  .home-footer__links { gap: 1rem; justify-content: space-between; width: 100%; }
  .home-footer__links a { font-size: 1rem; }
  .home-footer__bottom { gap: .5rem 1rem; padding-top: 1rem; }
}
@media (max-width: 23rem) {
  .home-container { width: calc(100% - 2rem); }
  .home-nav a { font-size: .75rem; }
  .home-hero h1 { font-size: 2.65rem; }
  .home-button { font-size: .8rem; gap: .5rem; padding-inline: .875rem; }
  .home-button svg { width: 1.25rem; height: 1.25rem; }
  .home-page h2 { font-size: 2rem; }
  .home-service { grid-template-columns: 1.8rem minmax(0, 1fr); gap: .875rem; }
  .home-service__icon { width: 1.8rem; height: 1.8rem; }
  .home-service h3 { font-size: 1.25rem; }
}
@media (max-width: 32.5rem) {
  .home-about__grid { grid-template-columns: 1fr; justify-items: center; gap: 1.75rem; }
  .home-about__portrait { width: 9rem; }
  .home-about__copy { text-align: center; }
  .home-about h2 { font-size: clamp(2.5rem, 12vw, 3.35rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
