/* Gridline Pictures · styles · version 1gg
   Three layouts, written mobile-first:
   1. Phone (base)            e.g. iPhone Pro Max, ~440 px wide
   2. Laptop  (min-width 700) e.g. 14" MacBook Pro, ~1512 px wide
   3. Large   (min-width 1800) e.g. 27" monitor, 2560 px wide            */

:root{
  --bg:#000;--fg:#f5f5f7;--muted:#86868b;--line:rgba(255,255,255,.14);
  --ease:cubic-bezier(.28,.11,.32,1);
  /* header: Bubble size (--os), side gap (--ox), top gap (--oy) */
  --os:80px;--ox:12px;--oy:12px;
  /* section spacing and sizes */
  --gap-studio:36px;--studio-w:100%;
  --gap-statement:40px;--headline:34px;--sub:17px;
  --gap-logo:28px;--logo-w:90vw;
}
@media (min-width:700px){
  :root{--os:clamp(104px,8vw,148px);--ox:max(24px,4vw);--oy:22px;
    --gap-studio:72px;--studio-w:min(92vw,1440px);
    --gap-statement:72px;--headline:clamp(48px,5.6vw,84px);--sub:clamp(19px,1.6vw,24px);
    --gap-logo:40px;--logo-w:min(50vw,780px)}
}
@media (min-width:1800px){
  :root{--gap-studio:120px;--studio-w:min(70vw,1900px);
    --gap-statement:120px;--headline:clamp(84px,4.4vw,120px);--sub:28px;
    --gap-logo:64px;--logo-w:min(34vw,920px)}
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;letter-spacing:-.011em}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit}

/* ---------- Header: floating logo (left) mirrored by the Bubble (right) ---------- */
.nav{position:fixed;top:0;left:0;right:0;z-index:30;height:calc(2 * (var(--oy) + var(--os) / 2));pointer-events:none;mix-blend-mode:screen}
.nav-inner{height:100%;display:flex;align-items:center;padding-left:calc(var(--ox) + var(--os) * .16)}
.brand{pointer-events:auto}
.brand img{height:calc(var(--os) * .76);width:auto}
.brand-shade{position:fixed;left:0;top:0;z-index:28;pointer-events:none;width:calc(var(--ox) + var(--os) * .16 + var(--os) * .76 * 2.95 + 140px);height:calc(2 * (var(--oy) + var(--os) / 2) + 50px);background:radial-gradient(ellipse 62% 58% at 38% 46%,rgba(0,0,0,.82) 0%,rgba(0,0,0,.55) 48%,rgba(0,0,0,0) 100%)}

.gp-orb{position:fixed;top:var(--oy);right:var(--ox);width:var(--os);height:var(--os);z-index:40;padding:0;margin:0;border:0;background:none;border-radius:50%;cursor:pointer;animation:orbIn 1.1s cubic-bezier(.2,1,.3,1) both;-webkit-tap-highlight-color:transparent}
.gp-orb::before{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,rgba(0,0,0,.75) 0%,rgba(0,0,0,.45) 42%,rgba(0,0,0,0) 68%);pointer-events:none}
.gp-orb:focus{outline:none}
.gp-orb:focus-visible{outline:2px solid rgba(140,196,242,.8);outline-offset:-10px}
.orb-cv{position:absolute;left:-25%;top:-25%;width:150%;height:150%;display:block;touch-action:manipulation;pointer-events:none;filter:saturate(1.9) brightness(1.45) contrast(1.1) drop-shadow(0 0 4px rgba(140,200,255,.85)) drop-shadow(0 0 14px rgba(63,134,199,.6))}
@keyframes orbIn{0%{opacity:0;transform:scale(.6) rotate(-20deg)}100%{opacity:1;transform:none}}

/* ---------- Menu panel ---------- */
.gp-menu{position:fixed;top:0;right:0;bottom:0;width:82vw;z-index:35;padding:calc(var(--oy) + var(--os) + 8px) 24px 40px;background:rgba(10,12,16,.10);-webkit-backdrop-filter:blur(3px) saturate(120%);backdrop-filter:blur(3px) saturate(120%);border-left:1px solid rgba(255,255,255,.10);overflow-y:auto;visibility:hidden;transform:translateX(100%);transition:transform .55s var(--ease),visibility 0s linear .55s}
@media (min-width:700px){.gp-menu{width:max(25vw,340px);padding-left:32px;padding-right:32px}}
.gp-menu.open{visibility:visible;transform:none;transition:transform .55s var(--ease),visibility 0s}
.gp-menu ul{list-style:none;margin:0;padding:0}
.gp-menu li{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.14);font-size:clamp(24px,2.1vw,32px);font-weight:600;letter-spacing:-.022em;line-height:1.1;color:#ececf0;text-shadow:0 0 14px rgba(255,255,255,.28),0 1px 14px rgba(0,0,0,.85);cursor:default;opacity:0;transform:translateX(16px);transition:opacity .5s var(--ease),transform .5s var(--ease),color .25s ease}
.gp-menu.open li{opacity:1;transform:none;transition-delay:calc(.1s + var(--i) * .05s),calc(.1s + var(--i) * .05s),0s}
.gp-menu li a{display:block;width:100%;cursor:pointer}
.gp-menu li a.net-link{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.gp-menu li:hover,.gp-menu li:focus-within{color:#fff;text-shadow:0 0 18px rgba(255,255,255,.5),0 0 4px rgba(255,255,255,.35),0 1px 14px rgba(0,0,0,.85)}
.gp-menu li em{font-style:normal;font-weight:400;font-size:12px;letter-spacing:0;color:#dcdce1;text-shadow:0 0 10px rgba(255,255,255,.22)}

/* ---------- 1. Eye video ---------- */
.eye{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:#000}
@media (min-width:700px){.eye{aspect-ratio:21/8;max-height:78vh}}
.eye video{display:block;width:100%;height:100%;object-fit:cover}
.eye::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 78%,#000 100%)}
.eye-toggle{position:absolute;right:12px;bottom:12px;z-index:2;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
@media (min-width:700px){.eye-toggle{right:20px;bottom:20px}}
.eye-toggle svg{fill:currentColor}
.eye-toggle .pl{display:none}
.eye-toggle.paused .pz{display:none}
.eye-toggle.paused .pl{display:inline}
.eye-toggle:focus-visible{outline:2px solid #8CC4F2;outline-offset:3px}

/* ---------- 2. Creative Studio artwork ---------- */
.studio{padding:var(--gap-studio) 8px 0;display:flex;justify-content:center}
.studio img{width:var(--studio-w);height:auto}

/* ---------- 3. Website Under Construction ---------- */
.statement{padding:var(--gap-statement) 18px 0;text-align:center}
.headline{margin:0;font-size:var(--headline);font-weight:700;line-height:1.05;letter-spacing:-.035em}
.hl-white{color:#fff}
.hl-grey{color:#86868b}
.sub{margin:18px auto 0;max-width:40ch;font-size:var(--sub);font-weight:500;line-height:1.35;letter-spacing:-.01em;color:#fff;transition-delay:.15s}
.reveal{opacity:0;transform:translateY(32px);transition:opacity 1.1s var(--ease),transform 1.1s var(--ease)}
.reveal.in{opacity:1;transform:none}

/* ---------- 4. Gridline logo ---------- */
.hero{display:flex;justify-content:center;align-items:flex-start;padding:var(--gap-logo) 16px 96px;overflow:hidden}
.logo{margin:0;line-height:0;width:var(--logo-w);opacity:0;transform:scale(.94);animation:logoIn 1.6s var(--ease) .15s forwards}
.logo img{width:100%;height:auto}
@keyframes logoIn{to{opacity:1;transform:scale(1)}}

/* ---------- Footer ---------- */
footer{padding:32px 16px 40px;background:transparent}
.fine{margin:0 auto;max-width:1024px;text-align:center;font-size:12px;line-height:1.4;letter-spacing:-.005em;color:var(--muted)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .logo{animation:none;opacity:1;transform:none}
  .reveal{opacity:1;transform:none;transition:none}
  .gp-orb{animation:none}
  .gp-menu,.gp-menu li{transition:none}
}
/* 1gh: colour brush layer on the artwork; letters split for the hover colour */
.studio-wrap{position:relative;width:var(--studio-w)}
.studio .studio-wrap img{width:100%}
.studio-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.wd{white-space:nowrap}
.ch{transition:color .9s ease,text-shadow .9s ease}

/* 1gk: copyright line a little larger */
.fine{font-size:14px}
@media (min-width:700px){.fine{font-size:15px}}
@media (min-width:1800px){.fine{font-size:17px}}

/* 1gl: brighter, crisper eye video */
.eye video{filter:brightness(1.18) contrast(1.06) saturate(1.12)}
.eye::after{background:linear-gradient(180deg,rgba(0,0,0,.22) 0%,rgba(0,0,0,0) 14%,rgba(0,0,0,0) 86%,#000 100%)}
.brand-shade{background:radial-gradient(ellipse 58% 52% at 36% 46%,rgba(0,0,0,.6) 0%,rgba(0,0,0,.35) 48%,rgba(0,0,0,0) 100%)}

/* 1gm: Maracatu video, shown close to its own colours */
.eye video{filter:brightness(1.06) contrast(1.03)}

/* 1gn: full, uncropped 16:9 video on every screen */
.eye{aspect-ratio:16/9;max-height:none}
@media (min-width:700px){.eye{aspect-ratio:16/9;max-height:none}}
.eye video{object-fit:contain;background:#000}
.eye::after{background:linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,0) 10%,rgba(0,0,0,0) 94%,#000 100%)}

/* 1go: sound button beside pause */
.eye-sound{right:62px}
@media (min-width:700px){.eye-sound{right:70px}}
.eye-sound svg{fill:currentColor}
.eye-sound .son{display:none}
.eye-sound.on .son{display:inline}
.eye-sound.on .soff{display:none}

/* 1gq: Gridline logo at half size */
:root{--logo-w:45vw}
@media (min-width:700px){:root{--logo-w:min(25vw,390px)}}
@media (min-width:1800px){:root{--logo-w:min(17vw,460px)}}

/* 1gs: Enter screen (only when the browser blocks sound) */
.gp-gate{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#000;opacity:0;transition:opacity .6s var(--ease)}
.gp-gate.show{opacity:1}
.gp-gate.out{opacity:0;pointer-events:none}
html.gated,html.gated body{overflow:hidden}
.gate-btn{display:flex;flex-direction:column;align-items:center;gap:18px;background:none;border:0;padding:24px;cursor:pointer;color:#fff;-webkit-tap-highlight-color:transparent}
.gate-btn img{width:clamp(120px,16vw,220px);height:auto;filter:drop-shadow(0 0 18px rgba(63,134,199,.55));animation:gatePulse 2.6s ease-in-out infinite}
.gate-enter{font-size:clamp(22px,2vw,30px);font-weight:600;letter-spacing:.32em;text-transform:uppercase;padding:12px 30px 12px 38px;border:1px solid rgba(255,255,255,.4);border-radius:999px;text-shadow:0 0 14px rgba(255,255,255,.35);transition:background .3s ease,border-color .3s ease}
.gate-btn:hover .gate-enter,.gate-btn:focus-visible .gate-enter{background:rgba(255,255,255,.08);border-color:#8CC4F2}
.gate-btn:focus{outline:none}
.gate-hint{display:flex;align-items:center;gap:8px;font-size:13px;color:#a1a1a6;letter-spacing:.04em}
@keyframes gatePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
@media (prefers-reduced-motion:reduce){.gate-btn img{animation:none}.gp-gate{transition:none}}

/* 1hc: inner pages (About, Contact, Work, Services) */
.page{max-width:1180px;margin:0 auto;min-height:72vh;padding:calc(2 * (var(--oy) + var(--os) / 2) + 40px) 20px 96px}
@media (min-width:700px){.page{padding-left:40px;padding-right:40px;padding-top:calc(2 * (var(--oy) + var(--os) / 2) + 72px)}}
.eyebrow{margin:0 0 18px;font-size:13px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#8CC4F2}
.page .page-title{text-align:left;font-size:clamp(40px,7vw,112px);line-height:1;letter-spacing:-.045em;max-width:14ch}
.page .lead{margin:28px 0 0;max-width:44ch;text-align:left;font-size:clamp(18px,1.7vw,26px);font-weight:500;line-height:1.45;color:#d2d2d7}
.cols{display:grid;grid-template-columns:1fr;gap:28px;margin-top:72px}
@media (min-width:700px){.cols{grid-template-columns:repeat(3,1fr);gap:40px;margin-top:110px}}
.col{border-top:1px solid rgba(255,255,255,.18);padding-top:20px}
.col .num{display:block;font-size:13px;font-weight:600;letter-spacing:.14em;color:#3f86c7;margin-bottom:14px}
.col h2{margin:0 0 10px;font-size:clamp(24px,2.2vw,32px);font-weight:700;letter-spacing:-.025em}
.col p{margin:0;font-size:16px;line-height:1.55;color:#a1a1a6}
.contact-list{display:flex;flex-direction:column;margin-top:64px;border-top:1px solid rgba(255,255,255,.18)}
.contact-item{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;padding:24px 0;border-bottom:1px solid rgba(255,255,255,.18);transition:color .25s ease}
.contact-item .label{font-size:13px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#86868b}
.contact-item .value{font-size:clamp(20px,2.6vw,40px);font-weight:600;letter-spacing:-.025em;word-break:break-word}
a.contact-item:hover .value,a.contact-item:focus-visible .value{color:#8CC4F2;text-shadow:0 0 18px rgba(140,196,242,.45)}
.cta-row{margin:64px 0 0}
.cta{display:inline-block;padding:16px 34px;border:1px solid rgba(255,255,255,.45);border-radius:999px;font-size:15px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;transition:background .3s ease,border-color .3s ease,color .3s ease}
.cta:hover,.cta:focus-visible{background:#f5f5f7;color:#000;border-color:#f5f5f7}
.gp-menu a[aria-current="page"]{color:#8CC4F2}
.gp-menu li em svg{display:inline-block}
/* 1hh: transparent stacked logo; narrower image (2360x3045), so it is drawn at 82% width to keep the same height as before */
.hero .logo{width:calc(var(--logo-w) * .82)}

/* 1hj: footer always at the bottom of the screen on every page */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body > main{flex:1 0 auto}
body > footer{flex-shrink:0;margin-top:auto}
main.page{width:100%}
/* 1hr: the menu panel stops just below its last item, so the video buttons underneath stay visible */
.gp-menu{bottom:auto;height:auto;max-height:100vh;max-height:100dvh;padding-bottom:28px;border-bottom:1px solid rgba(255,255,255,.10);border-bottom-left-radius:22px}

/* 1hs: brighter glow on the menu items under the mouse (or finger), bigger and brighter "Private" labels */
.gp-menu li:hover,.gp-menu li:focus-within,.gp-menu li:active{color:#fff;text-shadow:0 0 8px rgba(255,255,255,.95),0 0 22px rgba(140,196,242,.9),0 0 46px rgba(63,134,199,.75),0 1px 14px rgba(0,0,0,.85)}
.gp-menu li em{font-size:13.5px;color:#f2f2f6;text-shadow:0 0 10px rgba(255,255,255,.45),0 1px 8px rgba(0,0,0,.9)}
.gp-menu li:hover em,.gp-menu li:focus-within em,.gp-menu li:active em{color:#fff;text-shadow:0 0 10px rgba(140,196,242,.9),0 1px 8px rgba(0,0,0,.9)}
@media (min-width:700px){.gp-menu li em{font-size:14px}}

/* 1ht: menu panel reaches a little further below the last item */
.gp-menu{padding-bottom:64px}

/* 1hu: menu panel taller and airier, but always ending above the video sound / play buttons */
.gp-menu{padding-bottom:56px;max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px)}
.gp-menu li{padding:22px 0;font-size:28px}
@media (min-width:700px){.gp-menu li{padding:20px 0;font-size:clamp(26px,2.2vw,34px)}}

/* 1hw: page content above the pixel-grid layer (the grid is at z-index 0) */
body > main,body > footer{position:relative;z-index:1}

/* 1hx: no elastic pull / bounce on iPhone, so the pixel light and the blue trail stay together under the finger */
html,body{overscroll-behavior:none}

/* 1jj: dragging the mouse no longer paints blue selection blocks over the words and pictures; contact details stay copyable */
html,body{-webkit-user-select:none;user-select:none}
img,svg,canvas,video{-webkit-user-drag:none;user-drag:none}
.contact-item .value,input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}

/* 1jn: on inner pages the menu panel no longer blurs what is behind it, so the pixel grid and the page show through it as they do on the home page */
.subpage .gp-menu{background:rgba(10,12,16,.06);-webkit-backdrop-filter:none;backdrop-filter:none}

/* 1m9 · all pages and screens: no dark patch around the Bubble. Until the Bubble's first picture is drawn, the Gridline emblem
   itself is shown in its place (same size), so the Bubble is there the moment the page appears; then the moving ball takes over. */
.gp-orb{animation:none!important;opacity:1!important}
button.gp-orb::before{content:"";position:absolute;inset:16%;border-radius:50%;background:url(gridline-emblem.png) center/cover no-repeat!important;display:block!important;pointer-events:none}
button.gp-orb.gp-drawn::before{display:none!important}