:root {
  --gg-black: #090909;
  --gg-panel: #111111;
  --gg-line: #303030;
  --gg-signal: #fffa43;
  --gg-gold: #ffcc02;
  --gg-ivory: #f2efef;
  --gg-white: #f7f7f2;
  --gg-muted: #999993;
  --gg-sans: "Inter", Arial, sans-serif;
  --gg-mono: "JetBrains Mono", monospace;
}
* { box-sizing: border-box; }
html { background: var(--gg-black); scroll-behavior: smooth; }
body.gg-case-study { margin: 0; overflow-x: hidden; background: var(--gg-black); color: var(--gg-white); font-family: var(--gg-sans); }
body.gg-case-study, body.gg-case-study a, body.gg-case-study button { cursor: none; }
body.gg-case-study img { display: block; max-width: 100%; }
.gg-wrap { width: min(1480px, calc(100% - 80px)); margin-inline: auto; }
.gg-rule { border-top: 1px solid var(--gg-line); }

.gg-cursor { position: fixed; z-index: 9999; left: 0; top: 0; width: 46px; height: 46px; opacity: 0; pointer-events: none; transform: translate(-50%,-50%) rotate(45deg); border: 1px solid var(--gg-signal); background: rgba(255,250,67,.03); transition: width .22s ease, height .22s ease, background .22s ease, opacity .2s ease; }
.gg-cursor.is-visible { opacity: 1; }
.gg-cursor.is-active { width: 64px; height: 64px; background: var(--gg-signal); }
.gg-cursor i { position: absolute; inset: 0; }
.gg-cursor i::before, .gg-cursor i::after { content: ""; position: absolute; left: 50%; top: 50%; background: #111; transform: translate(-50%,-50%); }
.gg-cursor i::before { width: 8px; height: 1px; }
.gg-cursor i::after { width: 1px; height: 8px; }
.gg-cursor span { position: absolute; left: 52px; top: 50%; color: var(--gg-signal); white-space: nowrap; transform: translateY(-50%) rotate(-45deg); font: 600 9px/1 var(--gg-mono); letter-spacing: .12em; }
.gg-cursor.is-active span { color: var(--gg-signal); }

.gg-header { position: fixed; inset: 0 0 auto; z-index: 100; height: 82px; padding: 0 40px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 30px; background: rgba(9,9,9,.88); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(18px); font: 600 12px/1 var(--gg-mono); letter-spacing: .13em; }
.gg-header a { color: var(--gg-white); text-decoration: none; }
.gg-header > span { color: #777; }
.gg-header > b { color: var(--gg-signal); font: inherit; }
.gg-progress { height: 1px; overflow: hidden; background: #353535; }
.gg-progress i { display: block; width: 100%; height: 100%; background: var(--gg-signal); transform: scaleX(0); transform-origin: left; }

.gg-hero { min-height: 960px; padding: 145px 0 70px; overflow: hidden; }
.gg-hero__inner { min-height: 745px; position: relative; display: grid; grid-template-rows: auto 1fr auto; }
.gg-hero__meta { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #343434; color: #858585; font: 600 11px/1 var(--gg-mono); letter-spacing: .13em; }
.gg-hero h1 { position: relative; z-index: 3; align-self: center; margin: 42px 0 90px; max-width: 1000px; font-size: clamp(112px, 13vw, 220px); line-height: .76; letter-spacing: -.085em; }
.gg-hero h1 span { display: block; margin-left: 16%; color: var(--gg-signal); }
.gg-hero__devices { position: absolute; z-index: 2; top: 50%; right: 3%; width: 560px; height: 610px; transform: translateY(-48%); }
.gg-phone { position: relative; overflow: hidden; aspect-ratio: 944 / 2048; border: 8px solid #292929; border-radius: 42px; background: var(--gg-ivory); box-shadow: 0 42px 100px rgba(0,0,0,.48); }
.gg-phone::before { content: ""; position: absolute; z-index: 8; top: 8px; left: 50%; width: 31%; height: 17px; border-radius: 999px; transform: translateX(-50%); background: #242424; }
.gg-phone img { width: 100%; height: 100%; object-fit: cover; }
.gg-phone--hero { position: absolute; z-index: 3; left: 50%; width: 270px; transform: translateX(-50%) rotate(-1.5deg); }
.gg-phone--ghost { position: absolute; top: 62px; width: 220px; opacity: .38; filter: saturate(.55) brightness(.7); }
.gg-phone--left { left: 0; transform: rotate(-8deg); }
.gg-phone--right { right: 0; transform: rotate(8deg); }
.gg-hero__summary { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 90px; align-items: end; padding-top: 25px; border-top: 1px solid #343434; }
.gg-hero__summary p { max-width: 800px; margin: 0; font-size: clamp(29px,3vw,48px); line-height: 1.06; letter-spacing: -.045em; }
.gg-hero__summary ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gg-hero__summary li { padding: 14px; border: 1px solid #3b3b3b; border-radius: 999px; text-align: center; text-transform: uppercase; font: 500 10px/1 var(--gg-mono); letter-spacing: .08em; }

.gg-overview { padding-block: 130px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(420px,.65fr); gap: 100px; }
.gg-overview h2, .gg-flow__head h2, .gg-desktop h2, .gg-brand__head h2, .gg-final h2, .gg-applications h2, .gg-outcome h2, .gg-footer h2 { margin: 0; font-size: clamp(58px,6.5vw,108px); line-height: .92; letter-spacing: -.068em; }
.gg-overview > div > p:first-child, .gg-flow__head > p, .gg-desktop__head > p, .gg-brand__head > p, .gg-final__copy > p, .gg-applications__head > p { margin: 0; color: #aaa; font-size: 17px; line-height: 1.55; }
.gg-overview dl { margin: 54px 0 0; border-top: 1px solid var(--gg-line); }
.gg-overview dl div { padding: 18px 0; display: grid; grid-template-columns: 110px 1fr; gap: 18px; border-bottom: 1px solid var(--gg-line); }
.gg-overview dt, .gg-flow__head span, .gg-brand__head span, .gg-final__copy > span, .gg-outcome span { color: var(--gg-signal); font: 600 9px/1 var(--gg-mono); letter-spacing: .13em; }
.gg-overview dd { margin: 0; font-size: 14px; line-height: 1.4; }
.gg-overview__scope { margin: 24px 0 0 !important; color: #70706c !important; font: 500 10px/1.4 var(--gg-mono) !important; letter-spacing: .04em; text-transform: uppercase; }

.gg-flow { padding-block: 130px; background: #0d0d0d; }
.gg-flow__head, .gg-brand__head { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr); gap: 90px; align-items: end; }
.gg-flow__head span, .gg-brand__head span, .gg-final__copy > span { display: block; margin-bottom: 22px; }
.gg-flow__body { margin-top: 85px; display: grid; grid-template-columns: minmax(420px,.85fr) minmax(520px,1.15fr); border: 1px solid var(--gg-line); }
.gg-flow__visual { min-height: 850px; display: grid; place-items: center; padding: 65px; background: var(--gg-signal); }
.gg-flow__phone-wrap { position: sticky; top: 125px; width: 100%; display: grid; place-items: center; }
.gg-phone--flow { width: min(100%,335px); border-color: #181818; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.gg-phone--flow img { opacity: 1; transition: opacity .18s ease, transform .38s cubic-bezier(.2,.8,.2,1); }
.gg-phone--flow img.is-changing { opacity: 0; transform: scale(.985); }
.gg-flow__counter { position: absolute; z-index: 9; right: 13px; bottom: 13px; padding: 8px 10px; border-radius: 999px; background: #0a0009; color: white; font: 600 8px/1 var(--gg-mono); letter-spacing: .1em; }
.gg-flow__meter { width: min(100%,335px); height: 4px; margin-top: 18px; overflow: hidden; background: rgba(10,0,9,.17); }
.gg-flow__meter i { display: block; width: 16.666%; height: 100%; background: #0a0009; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.gg-flow__steps { margin: 0; padding: 0; list-style: none; }
.gg-flow__steps li + li { border-top: 1px solid var(--gg-line); }
.gg-flow__steps button { width: 100%; min-height: 140px; padding: 30px 34px; display: grid; grid-template-columns: 58px 1fr; gap: 24px; align-items: center; border: 0; background: transparent; color: var(--gg-white); text-align: left; transition: background .25s ease, color .25s ease; }
.gg-flow__steps button > span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #444; border-radius: 50%; font: 600 10px/1 var(--gg-mono); }
.gg-flow__steps button b { display: block; margin-bottom: 8px; font-size: 27px; letter-spacing: -.035em; }
.gg-flow__steps button p { margin: 0; color: #8f8f8b; font-size: 13px; line-height: 1.45; }
.gg-flow__steps button:hover, .gg-flow__steps button.is-active { background: var(--gg-signal); color: #0a0009; }
.gg-flow__steps button.is-active > span { border-color: #0a0009; background: #0a0009; color: white; }
.gg-flow__steps button:hover p, .gg-flow__steps button.is-active p { color: rgba(10,0,9,.65); }

.gg-desktop { padding-block: 130px; overflow: hidden; }
.gg-desktop__head { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr); gap: 90px; align-items: end; }
.gg-desktop__controls { width: min(1160px, calc(100% - 80px)); margin-top: 80px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--gg-line); }
.gg-desktop__controls button { min-height: 82px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; border: 0; border-right: 1px solid var(--gg-line); background: #101010; color: var(--gg-white); text-align: left; font: 600 15px/1 var(--gg-sans); transition: background .25s ease, color .25s ease; }
.gg-desktop__controls button:last-child { border-right: 0; }
.gg-desktop__controls button span { color: #676767; font: 600 9px/1 var(--gg-mono); transition: color .25s ease; }
.gg-desktop__controls button:hover, .gg-desktop__controls button.is-active { background: var(--gg-signal); color: #090909; }
.gg-desktop__controls button:hover span, .gg-desktop__controls button.is-active span { color: #090909; }
.gg-desktop__viewport { position: relative; width: min(1160px, calc(100% - 80px)); aspect-ratio: 16 / 9; height: auto; min-height: 0; margin-top: 1px; overflow: auto; border: 1px solid var(--gg-line); background: var(--gg-ivory); scrollbar-color: var(--gg-signal) #181818; scrollbar-width: thin; overscroll-behavior: contain; }
.gg-desktop__viewport:focus-visible { outline: 2px solid var(--gg-signal); outline-offset: 4px; }
.gg-desktop__viewport::-webkit-scrollbar { width: 8px; height: 8px; }
.gg-desktop__viewport::-webkit-scrollbar-track { background: #181818; }
.gg-desktop__viewport::-webkit-scrollbar-thumb { background: var(--gg-signal); }
.gg-desktop__viewport img { width: 100%; height: auto; max-width: none; transition: opacity .18s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.gg-desktop__viewport img.is-changing { opacity: 0; transform: scale(.994); }

.gg-brand { padding-block: 130px; background: #0d0d0d; }
.gg-brand__logo { width: 100%; margin: 85px 0 0; overflow: hidden; background: #050505; }
.gg-brand__logo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gg-brand__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1px; background: var(--gg-line); }
.gg-brand__grid figure { margin: 0; background: #050505; }
.gg-brand__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gg-tokens { margin-top: 65px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--gg-line); border-bottom: 1px solid var(--gg-line); }
.gg-tokens > div { min-width: 0; padding: 24px; display: grid; grid-template-columns: 54px 1fr; gap: 8px 16px; align-items: center; border-right: 1px solid var(--gg-line); }
.gg-tokens > div:last-child { border: 0; }
.gg-tokens i { width: 54px; height: 54px; grid-row: span 2; border-radius: 50%; background: var(--token); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.gg-tokens span { color: #aaa; font: 600 9px/1 var(--gg-mono); letter-spacing: .09em; }
.gg-tokens b { font-size: 20px; }

.gg-final { padding-block: 130px; display: grid; grid-template-columns: minmax(360px,.65fr) minmax(620px,1.35fr); gap: 90px; align-items: center; }
.gg-final__copy h2 { margin-top: 22px; }
.gg-final__copy > p { margin-top: 32px; }
.gg-final__screens { min-height: 780px; display: grid; grid-template-columns: repeat(2,minmax(0,340px)); gap: 28px; justify-content: end; align-items: center; }
.gg-final__screens .gg-phone:first-child { transform: translateY(-35px) rotate(-2deg); }
.gg-final__screens .gg-phone:last-child { transform: translateY(35px) rotate(2deg); }

.gg-applications { padding-block: 130px; overflow: hidden; background: #0d0d0d; }
.gg-applications__head { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(340px,.8fr); gap: 90px; align-items: end; }
.gg-application-track { width: max-content; margin-top: 80px; padding-left: max(40px,calc((100vw - 1480px)/2)); display: flex; gap: 18px; touch-action: pan-y; will-change: transform; }
.gg-application-track figure { width: min(74vw,1100px); margin: 0; flex: 0 0 auto; background: #050505; }
.gg-application-track img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gg-application-track figcaption { padding: 15px 2px; color: #8c8c88; font: 600 9px/1 var(--gg-mono); letter-spacing: .1em; }
.gg-application-progress { position: relative; margin-top: 30px; display: flex; align-items: center; gap: 24px; color: #777; font: 600 9px/1 var(--gg-mono); letter-spacing: .1em; }
.gg-application-progress::before { content: ""; height: 2px; flex: 1; background: #303030; }
.gg-application-progress i { position: absolute; left: 0; height: 2px; width: 18%; background: var(--gg-signal); transform: scaleX(0); transform-origin: left; }

.gg-outcome { padding-block: 150px; background: var(--gg-signal); color: #080808; }
.gg-outcome span { color: #080808; }
.gg-outcome h2 { max-width: 1300px; margin-top: 28px; font-size: clamp(70px,8.5vw,145px); }
.gg-footer { min-height: 650px; padding-block: 120px 40px; display: grid; grid-template-rows: auto 1fr auto; }
.gg-footer p { margin: 0; color: var(--gg-signal); font: 600 10px/1 var(--gg-mono); letter-spacing: .14em; }
.gg-footer h2 { align-self: center; max-width: 1150px; font-size: clamp(70px,9vw,150px); }
.gg-footer a { color: white; text-decoration: none; font: 600 12px/1 var(--gg-mono); letter-spacing: .1em; }
.gg-footer small { justify-self: end; color: #666; font: 600 8px/1 var(--gg-mono); letter-spacing: .1em; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .gg-wrap { width: calc(100% - 48px); }
  .gg-hero__devices { right: -3%; width: 500px; }
  .gg-phone--hero { width: 250px; }
  .gg-phone--ghost { width: 200px; }
  .gg-flow__body { grid-template-columns: minmax(360px,.8fr) minmax(440px,1.2fr); }
  .gg-flow__visual { padding: 45px; }
  .gg-final { grid-template-columns: .7fr 1.3fr; gap: 50px; }
  .gg-final__screens { grid-template-columns: repeat(2,280px); min-height: 680px; }
}

@media (max-width: 900px) {
  body.gg-case-study, body.gg-case-study a, body.gg-case-study button { cursor: auto; }
  .gg-cursor { display: none; }
  .gg-header { height: 70px; padding: 0 22px; grid-template-columns: auto 1fr auto; gap: 18px; }
  .gg-header > span { display: none; }
  .gg-hero { min-height: 980px; padding-top: 115px; }
  .gg-hero__inner { min-height: 820px; }
  .gg-hero h1 { align-self: start; margin-top: 75px; font-size: clamp(86px,20vw,165px); }
  .gg-hero__devices { top: 45%; right: -5%; width: 480px; height: 560px; }
  .gg-hero__summary { grid-template-columns: 1fr; gap: 35px; }
  .gg-overview, .gg-flow__head, .gg-desktop__head, .gg-brand__head, .gg-applications__head { grid-template-columns: 1fr; gap: 45px; }
  .gg-overview { gap: 55px; }
  .gg-flow__body { grid-template-columns: 1fr; }
  .gg-flow__visual { min-height: 760px; }
  .gg-flow__phone-wrap { position: relative; top: auto; }
  .gg-flow__steps { display: grid; grid-template-columns: repeat(2,1fr); }
  .gg-flow__steps li + li { border-top: 0; }
  .gg-flow__steps li { border-top: 1px solid var(--gg-line); border-right: 1px solid var(--gg-line); }
  .gg-flow__steps button { min-height: 160px; grid-template-columns: 46px 1fr; padding: 25px; gap: 15px; }
  .gg-flow__steps button b { font-size: 22px; }
  .gg-desktop__controls, .gg-desktop__viewport { width: calc(100% - 48px); }
  .gg-final { grid-template-columns: 1fr; }
  .gg-final__screens { justify-content: center; }
  .gg-application-track { padding-left: 24px; }
}

@media (max-width: 640px) {
  .gg-wrap { width: calc(100% - 32px); }
  .gg-header { font-size: 9px; letter-spacing: .08em; grid-template-columns: 1fr auto; }
  .gg-header .gg-progress { display: none; }
  .gg-hero { min-height: 850px; padding: 100px 0 55px; }
  .gg-hero__inner { min-height: 695px; }
  .gg-hero__meta { font-size: 8px; }
  .gg-hero h1 { margin-top: 58px; font-size: clamp(67px,22vw,105px); line-height: .78; }
  .gg-hero h1 span { margin-left: 8%; }
  .gg-hero__devices { top: 47%; right: -16%; width: 360px; height: 445px; }
  .gg-phone { border-width: 6px; border-radius: 34px; }
  .gg-phone::before { top: 6px; height: 13px; }
  .gg-phone--hero { width: 195px; }
  .gg-phone--ghost { top: 50px; width: 150px; }
  .gg-hero__summary { gap: 22px; }
  .gg-hero__summary p { font-size: 25px; }
  .gg-hero__summary ul { grid-template-columns: 1fr; }
  .gg-overview, .gg-flow, .gg-desktop, .gg-brand, .gg-final, .gg-applications { padding-block: 95px; }
  .gg-overview h2, .gg-flow__head h2, .gg-desktop h2, .gg-brand__head h2, .gg-final h2, .gg-applications h2, .gg-footer h2 { font-size: 49px; }
  .gg-overview { grid-template-columns: 1fr; }
  .gg-overview dl div { grid-template-columns: 85px 1fr; }
  .gg-flow__body { width: 100%; margin-top: 55px; }
  .gg-flow__visual { min-height: 630px; padding: 30px 16px; }
  .gg-phone--flow { width: 260px; }
  .gg-flow__steps { grid-template-columns: 1fr; }
  .gg-flow__steps li { border-right: 0; }
  .gg-flow__steps button { min-height: 122px; }
  .gg-desktop__controls { width: 100%; margin-top: 55px; grid-template-columns: 1fr; border-right: 0; border-left: 0; }
  .gg-desktop__controls button { min-height: 64px; border-right: 0; border-bottom: 1px solid var(--gg-line); }
  .gg-desktop__controls button:last-child { border-bottom: 0; }
  .gg-desktop__viewport { width: 100%; height: min(126vw,670px); min-height: 440px; aspect-ratio: auto; margin-top: 1px; border-right: 0; border-left: 0; }
  .gg-desktop__viewport img { width: 980px; }
  .gg-brand__logo { margin-top: 55px; }
  .gg-brand__grid { width: 100%; grid-template-columns: 1fr; }
  .gg-tokens { grid-template-columns: 1fr; }
  .gg-tokens > div { border-right: 0; border-bottom: 1px solid var(--gg-line); }
  .gg-tokens > div:last-child { border-bottom: 0; }
  .gg-final__screens { min-height: 610px; grid-template-columns: repeat(2,215px); gap: 13px; transform: translateX(12%); }
  .gg-application-track { gap: 12px; padding-left: 16px; }
  .gg-application-track figure { width: 88vw; }
  .gg-outcome { padding-block: 100px; }
  .gg-outcome h2 { font-size: 58px; }
  .gg-footer { min-height: 560px; padding-block: 90px 35px; }
  .gg-footer small { justify-self: start; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
