/*
  2026-08 visual refinement
  Preserve the approved visual language; only refine hierarchy, density and WORKS layout.
*/

/* TOP / WORKS — equal treatment for every project ----------------------- */
.projects[data-layout="grid"]{
  height:auto!important;
  padding:clamp(82px,7.2vw,116px) 0 clamp(92px,8vw,128px);
  overflow:visible;
}
.projects[data-layout="grid"] .projects-sticky{
  position:relative;
  top:auto;
  min-height:0;
  padding-top:0;
  padding-bottom:0;
  justify-content:flex-start;
  overflow:visible;
}
.projects[data-layout="grid"] .projects-head{
  margin-bottom:52px;
}
.projects[data-layout="grid"] .projects-viewport{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  overflow:visible;
}
.projects[data-layout="grid"] .projects-track{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:64px 28px;
  width:100%;
  padding-right:0;
  transform:none!important;
}
.projects[data-layout="grid"] .project-card{
  width:auto;
  min-width:0;
  opacity:1!important;
  transform:none!important;
  padding:0;
}
.projects[data-layout="grid"] .project-art{
  width:100%;
  height:auto;
  aspect-ratio:16/10;
  box-shadow:0 10px 26px rgba(24,34,46,.035);
}
.projects[data-layout="grid"] .project-meta{
  margin-top:18px;
  margin-bottom:5px;
}
.projects[data-layout="grid"] .project-card h3{
  margin:0 0 8px;
  font-size:clamp(20px,1.65vw,25px);
  line-height:1.45;
  font-weight:500;
}
.projects[data-layout="grid"] .project-card strong{
  display:block;
  max-width:34em;
  font-size:clamp(14px,1.12vw,16px);
  line-height:1.8;
  font-weight:500;
  color:#425363;
}
.projects[data-layout="grid"] .project-card>a{
  margin-top:14px;
}
.projects[data-layout="grid"] .all-projects{
  margin-top:46px;
}

/* The top page intentionally no longer carries the full process/company-info sections. */
.about .digital-bg p{max-width:48em}

/* Keep desktop typography restrained; approved hero sizing and color system remain untouched. */
@media (min-width:901px){
  .projects[data-layout="grid"] .projects-head h2 br{display:none}
  .projects[data-layout="grid"] .projects-head>p:last-child{max-width:31em}
}

@media (max-width:900px){
  .projects[data-layout="grid"]{
    padding:50px 0 56px!important;
  }
  .projects[data-layout="grid"] .projects-head{
    margin-bottom:24px!important;
  }
  .projects[data-layout="grid"] .projects-viewport{
    overflow:visible!important;
    padding:0 20px!important;
  }
  .projects[data-layout="grid"] .projects-track{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:36px!important;
    padding:0!important;
  }
  .projects[data-layout="grid"] .project-card{
    width:100%!important;
    max-width:none!important;
    display:block!important;
    scroll-snap-align:none!important;
  }
  .projects[data-layout="grid"] .project-art{
    aspect-ratio:16/10!important;
  }
  .projects[data-layout="grid"] .project-card h3{
    min-height:0!important;
    margin:0 0 6px!important;
    font-size:18px!important;
  }
  .projects[data-layout="grid"] .project-card strong{
    height:auto!important;
    min-height:0!important;
    display:block!important;
    overflow:visible!important;
    font-size:14px!important;
    line-height:1.72!important;
  }
  .projects[data-layout="grid"] .project-card>a{
    margin-top:10px!important;
  }
  .projects[data-layout="grid"] .all-projects{
    margin:28px 20px 0!important;
  }
}

@media (max-width:620px){
  .projects[data-layout="grid"] .projects-viewport{padding-left:18px!important;padding-right:18px!important}
  .projects[data-layout="grid"] .projects-track{gap:32px!important}
  .projects[data-layout="grid"] .all-projects{margin-left:18px!important;margin-right:18px!important}
}

/* v3 comparison pass — section headings two steps quieter ------------------
   Keep the approved hero typography unchanged. Reduce only section-level
   headings so hierarchy comes from spacing/composition rather than scale. */
.section h2,
.projects-head h2,
.contact h2{
  font-size:clamp(25px,2.7vw,40px)!important;
  line-height:1.48!important;
}

@media (max-width:900px){
  .section h2,
  .projects-head h2,
  .contact h2{
    font-size:clamp(23px,4.8vw,31px)!important;
    line-height:1.5!important;
  }
}

@media (max-width:620px){
  .section h2,
  .projects-head h2,
  .contact h2{
    font-size:clamp(21px,5.8vw,26px)!important;
    line-height:1.55!important;
  }
}

/* v5 — top ABOUT as the single strong color accent -----------------------
   Keep the existing layout/typography, but give the profile area one calm
   deep-blue surface so the page rhythm shifts once before CONTACT. */
.about{
  max-width:none!important;
  overflow:hidden;
  background:
    radial-gradient(circle at 78% 28%,rgba(69,128,255,.22),transparent 34%),
    radial-gradient(circle at 18% 86%,rgba(0,184,255,.10),transparent 36%),
    linear-gradient(145deg,#122b63 0%,#173d86 48%,#102856 100%);
  color:#fff;
  border-top:0!important;
}
.about:before,
.about:after{
  content:"";
  position:absolute;
  pointer-events:none;
  border-radius:50%;
  filter:blur(72px);
  opacity:.42;
  will-change:transform,opacity;
}
.about:before{
  width:38vw;
  height:38vw;
  right:-9vw;
  top:-14vw;
  background:rgba(78,138,255,.30);
  animation:aboutGlowDriftA 12s ease-in-out infinite alternate;
}
.about:after{
  width:30vw;
  height:30vw;
  left:20vw;
  bottom:-20vw;
  background:rgba(0,185,255,.18);
  animation:aboutGlowDriftB 15s ease-in-out infinite alternate;
}
.about>*{position:relative;z-index:1}
.about .section-index,
.about .mini-title{color:#9fc1ff!important}
.about .section-index:after{background:linear-gradient(90deg,#9fc1ff,rgba(159,193,255,.08))!important}
.about h2,
.about .about-main blockquote,
.about .digital-bg li{color:#fff!important}
.about .about-copy p,
.about .digital-bg p,
.about .section-action p{color:rgba(239,246,255,.72)!important}
.about .digital-bg li:before{border-color:#8eb7ff!important}
.about .about-photo{
  border-color:rgba(255,255,255,.16)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.06))!important;
  color:rgba(255,255,255,.68)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.about .section-action{border-top-color:rgba(255,255,255,.18)!important}
.about .motion-link{
  color:#fff!important;
  border-bottom-color:rgba(255,255,255,.38)!important;
}
.about .motion-link i{color:#9fc1ff!important}
.about .motion-link:before{background:#9fc1ff!important}
.about .side-word{color:rgba(255,255,255,.055)!important}

@keyframes aboutGlowDriftA{
  0%{transform:translate3d(0,0,0) scale(1);opacity:.34}
  100%{transform:translate3d(-5vw,4vw,0) scale(1.12);opacity:.52}
}
@keyframes aboutGlowDriftB{
  0%{transform:translate3d(0,0,0) scale(.92);opacity:.24}
  100%{transform:translate3d(6vw,-3vw,0) scale(1.08);opacity:.42}
}

@media (max-width:900px){
  .about:before{width:72vw;height:72vw;right:-28vw;top:-18vw}
  .about:after{width:62vw;height:62vw;left:-14vw;bottom:-34vw}
}

@media (prefers-reduced-motion:reduce){
  .about:before,.about:after{animation:none!important;transform:none!important}
}

/* v9 — TOP project result preview */
.project-result-preview{display:flex;gap:10px;align-items:baseline;margin:11px 0 0;padding-top:10px;border-top:1px solid rgba(24,34,46,.08);font-size:10px;line-height:1.65;color:#637582}
.project-result-preview small{font-size:8px;letter-spacing:.13em;color:var(--blue)}

.project-card>.project-result-preview{display:flex!important;height:auto!important;min-height:0!important;margin:11px 0 0!important;overflow:visible!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important}
@media(max-width:560px){.project-card>.project-result-preview{display:flex!important;font-size:9.5px!important;line-height:1.65!important}}


/* Performance: project previews use images/static fallback instead of live iframes. */
.project-site-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:1;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.project-card:hover .project-site-preview img{transform:scale(1.012)}
.project-site-preview.has-project-image>span,.project-site-preview.has-project-image>i{display:none}
.project-site-preview .preview-label{z-index:3!important}

/* 2026-08 copy review: keep the hero prominent, reduce secondary headline scale on desktop. */
@media (min-width:901px){
  .section h2,
  .projects-head h2{
    font-size:clamp(29px,3vw,44px)!important;
    line-height:1.45!important;
  }
  .contact h2{
    font-size:clamp(29px,2.9vw,42px)!important;
    line-height:1.5!important;
  }
}


/* 2026-08 TOP footer spacing: keep lower edge compact without affecting subpages. */
.home-page .site-footer{
  margin-bottom:0!important;
  padding-top:26px!important;
  padding-bottom:18px!important;
}
.home-page .site-shell{padding-bottom:0!important;margin-bottom:0!important}
.home-page{padding-bottom:0!important}
@media(max-width:620px){
  .home-page .site-footer{padding-top:30px!important;padding-bottom:22px!important}
}


/* 2026-08 positioning refinement ---------------------------------------- */
.hero-lead strong{display:block;margin-bottom:14px;color:#1b2f45;font-size:clamp(17px,1.45vw,22px);line-height:1.65;letter-spacing:.01em;font-weight:500}.hero-lead p{margin:0}.services-intro{grid-column:8/12;margin:0 0 34px;color:#4f5f6d;font-size:14px;line-height:2}.services .service-list{grid-column:1/13}
@media(max-width:900px){.services-intro{grid-column:auto;max-width:44em;margin:26px 0 26px}}
@media(max-width:620px){.hero-lead strong{margin-bottom:9px;font-size:14px;line-height:1.7}.hero-lead p{font-size:11.7px;line-height:1.85}.services-intro{margin:16px 0 20px;font-size:11.8px;line-height:1.85}}
