/* GF Web motion layer: accurate portfolio framing + three motion-graphics moments. */

/* Preserve the whole captured browser frame instead of cropping the artwork. */
.work.home-section .project-card.live-project .live-project-art,
.work.featured-work-page .project-card.live-project .live-project-art {
  aspect-ratio: 16 / 9 !important;
  background:#161616 !important;
}
.work.home-section .project-card.live-project .live-project-shot,
.work.featured-work-page .project-card.live-project .live-project-shot {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: top center !important;
  background:#161616;
}

/* 01 — Hero identity motion. */
.hero {
  grid-template-columns: minmax(0,1.08fr) minmax(430px,.92fr) !important;
  gap: clamp(34px,4.5vw,76px) !important;
  align-items: stretch !important;
  padding-top: clamp(46px,5vw,82px) !important;
  padding-bottom: clamp(46px,5vw,82px) !important;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
  padding-bottom: clamp(8px,1.5vw,24px);
}
.hero h1 {
  max-width: 980px !important;
  font-size: clamp(62px,8.15vw,132px) !important;
}
.hero .lede {
  max-width: 620px;
  margin-left: clamp(0px,8vw,120px) !important;
}
.hero-actions { margin-left: clamp(0px,8vw,120px) !important; }
.hero::before { display:none !important; }
.hero-panel { display:none !important; }

.hero-motion {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px,72vh,820px);
  overflow: hidden;
  align-self: stretch;
  background: #0b0b0b;
  border: 1px solid rgba(11,11,11,.16);
  box-shadow: 0 28px 80px rgba(11,11,11,.12);
}
.hero-motion video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  background: #0b0b0b;
}
.hero-motion::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 25% 25%;
}
.hero-motion::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 26%, transparent 70%, rgba(0,0,0,.42)),
    radial-gradient(circle at 92% 8%, rgba(216,255,63,.14), transparent 30%);
}
.hero-motion-label,
.hero-motion-meta {
  position: absolute;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-motion-label {
  top: 22px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-motion-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(216,255,63,.12);
}
.hero-motion-meta {
  left: 24px;
  bottom: 24px;
  max-width: 260px;
  color: var(--moss);
}
.hero-motion-index {
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 2;
  color: rgba(255,255,255,.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.hero-motion-mark {
  position: absolute;
  right: 22px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-size: clamp(62px,7vw,118px);
  line-height: .8;
  font-weight: 300;
  transform: rotate(-1deg);
}
.hero-motion-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 1px;
  background: var(--moss);
  box-shadow: 0 0 20px rgba(216,255,63,.5);
  animation: gfScan 5.8s cubic-bezier(.25,.75,.25,1) infinite;
  opacity: .7;
}
@keyframes gfScan {
  0%,10% { transform: translateY(0); opacity:0; }
  18% { opacity:.65; }
  75% { opacity:.3; }
  88%,100% { transform: translateY(72vh); opacity:0; }
}

/* 02 — Mid-page systems/process motion. */
.motion-feature {
  max-width:none;
  padding:clamp(92px,10vw,160px) var(--pad);
  background:var(--cream);
  color:var(--ink);
}
.motion-feature-system {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:clamp(20px,2.4vw,42px);
  align-items:center;
}
.motion-feature-copy {
  grid-column:1 / span 4;
  max-width:520px;
  align-self:center;
}
.motion-feature-copy .eyebrow {
  margin:0 0 clamp(30px,4vw,56px);
  color:var(--ink);
}
.motion-feature-copy h2 {
  margin:0 0 28px;
  font-size:clamp(46px,5.6vw,88px);
  line-height:.94;
  letter-spacing:-.06em;
  font-weight:600;
}
.motion-feature-copy > p:not(.eyebrow) {
  max-width:460px;
  margin:0 0 30px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}
.motion-feature-media {
  position:relative;
  grid-column:5 / -1;
  aspect-ratio:16 / 9;
  min-width:0;
  overflow:hidden;
  background:#0b0b0b;
  border:1px solid rgba(11,11,11,.15);
  box-shadow:0 32px 90px rgba(11,11,11,.13);
}
.motion-feature-media video {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#0b0b0b;
}
.motion-feature-media::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(0,0,0,.08),transparent 70%,rgba(0,0,0,.25));
}
.motion-corner {
  position:absolute;
  z-index:2;
  color:#fff;
  font-size:9px;
  line-height:1;
  font-weight:750;
  letter-spacing:.16em;
}
.motion-corner-top { top:20px; left:22px; }
.motion-corner-bottom { right:22px; bottom:20px; color:var(--moss); }

/* 03 — Closing conversion motion. */
.motion-close {
  position:relative;
  isolation:isolate;
  min-height:clamp(620px,78vh,880px);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  padding:clamp(74px,9vw,140px) var(--pad);
  background:#0b0b0b;
  color:#fff;
}
.motion-close > video {
  position:absolute;
  inset:0;
  z-index:-3;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#0b0b0b;
}
.motion-close::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:linear-gradient(90deg,rgba(5,5,5,.9) 0%,rgba(5,5,5,.62) 42%,rgba(5,5,5,.16) 76%,rgba(5,5,5,.28) 100%),linear-gradient(0deg,rgba(0,0,0,.56),transparent 60%);
}
.motion-close-grid {
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.12;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.22) 1px,transparent 1px);
  background-size:12.5% 25%;
}
.motion-close-copy {
  width:min(1050px,78%);
  position:relative;
  z-index:2;
}
.motion-close-copy .eyebrow {
  color:var(--moss) !important;
  margin-bottom:30px;
}
.motion-close-copy h2 {
  max-width:1000px;
  margin:0 0 28px;
  color:#fff !important;
  font-size:clamp(58px,8vw,132px) !important;
  line-height:.9 !important;
  letter-spacing:-.07em !important;
  font-weight:600;
}
.motion-close-copy > p {
  max-width:620px;
  margin:0 0 34px;
  color:rgba(255,255,255,.72) !important;
  font-size:17px;
  line-height:1.6;
}
.motion-close-copy .button.light {
  background:var(--moss) !important;
  border-color:var(--moss) !important;
  color:var(--ink) !important;
}
.motion-close-copy .button.light:hover {
  background:#fff !important;
  border-color:#fff !important;
}
.motion-close-index {
  position:absolute;
  top:26px;
  right:var(--pad);
  z-index:2;
  color:rgba(255,255,255,.7);
  font-size:10px;
  font-weight:750;
  letter-spacing:.16em;
}

/* The old screenshot carousel is intentionally retired. */
.studio-reel { display:none !important; }

@media(max-width:1050px) {
  .hero {
    grid-template-columns: 1fr !important;
    gap: 46px !important;
  }
  .hero-copy { padding-top:30px; padding-bottom:0; }
  .hero .lede,.hero-actions { margin-left:0 !important; }
  .hero-motion { min-height: min(70vw,680px); }
  .motion-feature-system { grid-template-columns:1fr; gap:42px; }
  .motion-feature-copy,.motion-feature-media { grid-column:1 / -1; }
  .motion-feature-copy { max-width:760px; }
  .motion-feature-copy h2 { max-width:760px; }
  .motion-close-copy { width:min(900px,90%); }
}
@media(max-width:850px) {
  .hero { padding-top:64px !important; }
  .hero-motion { min-height:64vw; }
  .motion-feature { padding-top:88px; padding-bottom:88px; }
  .motion-close { min-height:720px; }
}
@media(max-width:520px) {
  .hero { padding-top:54px !important; gap:34px !important; }
  .hero h1 { font-size:clamp(54px,16vw,78px) !important; }
  .hero-motion { min-height:112vw; margin-left:calc(var(--pad) * -1); margin-right:calc(var(--pad) * -1); border-left:0; border-right:0; }
  .hero-motion video { object-position:center; }
  .hero-motion-label,.hero-motion-meta { left:20px; }
  .hero-motion-index { right:20px; }
  .hero-motion-mark { right:18px; }
  .motion-feature { padding:76px 20px 82px; }
  .motion-feature-copy h2 { font-size:48px; }
  .motion-feature-media { aspect-ratio:4 / 3; margin-left:-20px; margin-right:-20px; width:calc(100% + 40px); }
  .motion-feature-media video { object-fit:cover; }
  .motion-corner-top { left:18px; }
  .motion-corner-bottom { right:18px; }
  .motion-close { min-height:720px; padding:70px 20px 58px; }
  .motion-close-copy { width:100%; }
  .motion-close-copy h2 { font-size:clamp(54px,15vw,78px) !important; }
  .motion-close-copy > p { font-size:16px; }
  .motion-close-index { top:20px; right:20px; }
  .motion-close::before { background:linear-gradient(0deg,rgba(5,5,5,.94) 0%,rgba(5,5,5,.72) 55%,rgba(5,5,5,.2) 100%); }
}
@media(prefers-reduced-motion:reduce) {
  .hero-motion video,.motion-feature-media video,.motion-close > video { display:none; }
  .hero-motion-scan { animation:none !important; display:none; }
  .hero-motion,.motion-feature-media,.motion-close { background:linear-gradient(135deg,#0b0b0b 0 58%,#d8ff3f 58% 61%,#f5f4ef 61% 68%,#0b0b0b 68%); }
}
