/* The work section: the websites' recordings riding a tunnel of cards (js/tunnel.js), full width of the page,
   then the three websites listed under it, each with its link */
@media (max-width: 599px) { .sites { display: block; padding-top: 44px; } }   /* (phones: right after the buttons, in place of the slideshow there) */

.work-tunnel { position: relative; margin: clamp(28px, 4vh, 48px) calc(50% - 50vw) 0; width: 100vw; }
.work-tunnel .tf-frame { --tf-bg: transparent; --tf-ink: var(--silver); width: 100%; height: clamp(400px, min(76vh, 54vw), 760px); }
@media (max-width: 599px) { .work-tunnel .tf-frame { height: clamp(260px, 40vh, 360px); } }

/* the slider itself (from the Tunnel Fold Slider template) */
.tf-frame { display: grid; place-items: center; overflow: hidden; }
.tf-root { --tf-pad: clamp(16px, 3cqw, 40px); --tf-band: clamp(36px, 9cqh, 84px); --tf-band-top: 0px; --tf-band-bottom: 0px; position: relative; width: 100%; height: 100%; background: var(--tf-bg); color: var(--tf-ink); overflow: hidden; outline: none; container-type: size; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.tf-root[data-draggable] { cursor: grab; }
.tf-root[data-dragging] { cursor: grabbing; }
.tf-root:focus-visible::after { content: ''; position: absolute; inset: 0; z-index: 3; box-shadow: inset 0 0 0 2px var(--blue-soft); pointer-events: none; }
.tf-gl { position: absolute; left: 0; right: 0; top: var(--tf-band-top); bottom: var(--tf-band-bottom); z-index: 1; overflow: hidden; pointer-events: none; }
.tf-canvas { display: block; width: 100%; height: 100%; }
.tf-still { display: none; position: absolute; left: 50%; top: 50%; z-index: 1; width: min(70cqw, 90cqh * 1.67); aspect-ratio: 1512 / 906; object-fit: cover; border-radius: 6px; transform: translate(-50%, -50%); }
.tf-root[data-tf-fallback] .tf-still { display: block; }
.tf-toggle { position: absolute; left: 16px; top: 16px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--text); cursor: pointer; clip-path: inset(50%); opacity: 0; }
.tf-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tf-toggle .tf-play, .tf-toggle[aria-pressed="true"] .tf-pause { display: none; }
.tf-toggle[aria-pressed="true"] .tf-play { display: block; }
.tf-toggle:focus-visible { clip-path: none; opacity: 1; outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.tf-live { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* the three websites, one row each */
.work-list { list-style: none; margin: clamp(40px, 6vh, 72px) 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.work-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px clamp(20px, 3vw, 48px); align-items: baseline; padding: clamp(22px, 3vh, 34px) 0; border-bottom: 1px solid var(--line-strong); }
.work-item__num { font-size: 13px; letter-spacing: 0.16em; color: var(--muted); }
.work-item__name { font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 400; line-height: 1.15; text-transform: uppercase; }
.work-item__desc { margin-top: 10px; max-width: 62ch; color: var(--silver); font-size: 15px; }
.work-item__desc em { color: var(--muted); }
.work-item__visit { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); font-size: 14px; text-decoration: none; white-space: nowrap; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.work-item__visit:hover, .work-item__visit:focus-visible { background: var(--text); color: var(--bg); }
@media (max-width: 760px) {
  .work-item { grid-template-columns: 40px minmax(0, 1fr); }
  .work-item__visit { grid-column: 2; justify-self: start; margin-top: 10px; }
}

/* The 3D logo (js/logo-3d.js): the symbol made solid, laid over its picture, which it hides once drawn */
.mark__3d, .wordmark__3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); }
.mark__3d.is-on { opacity: 1; }
.mark__3d { z-index: 1; }
.mark__3d { inset: -14%; width: 128%; height: 128%; filter: drop-shadow(0 8px 26px rgba(59, 123, 255, 0.35)); }
.wordmark { position: relative; }
.wordmark__3d { left: -14%; top: 50%; bottom: auto; width: 128%; height: auto; aspect-ratio: 1; transform: translateY(-50%); }
.js .wordmark.is-in .wordmark__3d.is-on { opacity: 1; }
.wordmark__logo.is-hidden { opacity: 0 !important; }
@media (max-width: 599px) { .wordmark__3d { display: none; } }

/* "Design. Build. Launch. Grow." on one line under the tunnel */
.work-tunnel__words { margin: clamp(10px, 2vh, 20px) 0 0; text-align: center; white-space: nowrap; font: 500 clamp(12px, 1.15vw, 15px)/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); }

/* The home page opens on the tunnel: it fills the first screen under the header, with "Design. Build. Launch. Grow."
   along the bottom (every screen). Its title stays for screen readers; "Your Website / Our project." comes next */
.sites.wrap { display: flex; flex-direction: column; max-width: none; min-height: calc(100svh - var(--nav-h)); padding-block: 0; --tw: clamp(56px, 8vh, 88px); }
.sites > .eyebrow, .sites > .sites__title { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sites .work-tunnel { margin-top: 0; }
.sites .work-tunnel .tf-frame { height: calc(100svh - var(--nav-h) - var(--tw)); min-height: 300px; }
.sites .work-tunnel__words { box-sizing: border-box; height: var(--tw); margin: 0; padding-top: clamp(10px, 2vh, 20px); }
@media (max-width: 599px) { .sites.wrap { display: flex; } }
/* (screens held upright - phones and iPads: the tunnel is a band across, so it keeps a band's shape - a full-height
   frame would zoom it in too far on a phone and leave it thin on an iPad - in the middle of the first screen, with the
   words just under it) */
@media (orientation: portrait) and (max-width: 1099px) {
  .sites.wrap { justify-content: center; }
  .sites .work-tunnel .tf-frame { height: clamp(300px, 42svh, 560px); }
  /* (and its title over it, filling the screen's height: "Different websites, different businesses.") */
  .sites > .sites__title { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin: 0 0 clamp(4px, 1.5vh, 20px); text-align: center; }
  .sites > .sites__title .sites__script, .sites > .sites__title em { margin-inline: auto; }
}
@media (orientation: portrait) and (max-width: 599px) { .sites .work-tunnel .tf-frame { height: clamp(260px, 40vh, 360px); } }

/* The header's logo is the star logo on every screen (the intro's stars land on it, and it stays stars - never the
   picture): fixed exactly over the header's picture logo, which stays hidden. Phones place it in site.css; here the
   wider screens, from the header's own sizes (the logo clamp(44px, 3.6vw, 54px) wide, the bar's padding, its middle) */
@media (min-width: 600px) {
  .hero__mark {
    --hl: clamp(44px, 3.6vw, 54px);
    position: fixed; z-index: 61; margin: 0; pointer-events: none; grid-row: auto; justify-self: auto; align-self: auto;
    width: calc(var(--hl) / 0.84);   /* (its stars - 84% of it - the size of the header logo, centred on it) */
    left: calc(max(30px, env(safe-area-inset-left)) - var(--hl) * 0.0952);
    top: calc(var(--nav-h) / 2 - var(--hl) / 1.68);
  }
  .hero__mark .orbit { display: none; }
  .nav .wordmark__logo { visibility: hidden; }
}
.js .hero__mark { transition: opacity 0.4s var(--ease); }
.nav-away .hero__mark { opacity: 0 !important; pointer-events: none; }   /* (away with the header as you scroll down) */
/* (while the intro's logo waits in the middle of the screen and flies up, the header's own is hidden: it lands on it) */
.logo-waiting .hero__mark { opacity: 0 !important; }
.intro.is-parked { pointer-events: none; cursor: auto; }   /* (the logo floats over the page: the page takes clicks) */

/* The websites under the tunnel fade in one after the other with the scroll (js/site.js sets each fade off: .is-on) */
@media (prefers-reduced-motion: no-preference) {
  .js .work-list > .work-item.reveal, .js .live-sites .live-sites__title.reveal, .js .live-sites .about-us, .js .live-sites .more-btn { transform: none; opacity: 0; pointer-events: none; transition: opacity 0.4s ease-out; will-change: opacity; }
  .js .work-list > .work-item.reveal.is-on, .js .live-sites .live-sites__title.reveal.is-on, .js .live-sites .about-us.is-on, .js .live-sites .more-btn.is-on { opacity: 1; pointer-events: auto; transition: opacity 0.85s cubic-bezier(0.33, 0, 0.2, 1), color 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
  .js .live-sites .more-btn.is-gone, .js .live-sites .about-us.is-gone { opacity: 0; transition: opacity 0.11s ease-out; }
  .js .work-list > .work-item.reveal:has(:focus-visible) { opacity: 1 !important; pointer-events: auto !important; }
  .js .live-sites .more-btn:focus-visible { opacity: 1 !important; pointer-events: auto !important; }
}

/* (phones show the tunnel too now, the same slideshow as every other screen: the band of websites in the middle of the
   first screen, its title over it, as on a tablet held upright - the phone reel is in unused/) */

/* Under the tunnel: the websites live on their own domains, one row each with its link (the .work-item rows above),
   full width with the page's gutter */
.live-sites.wrap { max-width: none; padding-block: clamp(64px, 10vh, 120px) clamp(56px, 8vh, 96px); }
@media (min-width: 1000px) { .live-sites.wrap { padding-inline: max(46px, env(safe-area-inset-left)); } }
.live-sites .eyebrow { margin-bottom: 14px; }
.live-sites__title { font-size: clamp(1.9rem, 4vw, 3.6rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.01em; text-transform: uppercase; text-align: center; }
.live-sites .work-list { margin-top: clamp(40px, 5.5vh, 64px); }
.live-sites .work-item__desc { margin-top: 6px; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0.02em; }

/* Connect: at the foot of the slideshow (over the tunnel's bottom edge, just above "Design. Build. Launch. Grow."), a solid white pill - bold dark blue words, no
   outline. Pressed, it fades and shrinks away and two pills of the same look take its place, spreading out
   from the middle: Email, Call - opacity and transform only */
.connect { position: absolute; left: 0; right: 0; width: max-content; margin-inline: auto; bottom: calc(var(--pin, 0px) + var(--tw, 0px) + 12px); z-index: 4; display: grid; place-items: center; text-transform: none; letter-spacing: normal; }
.connect > * { grid-area: 1 / 1; }
.connect__btn, .connect__opt, .connect__go { display: inline-flex; align-items: center; justify-content: center; position: relative; min-height: 48px; padding: 0 28px; border: 0; border-radius: 99px; background: #fff; color: #0b1f52; font: 600 15px/1 var(--sans); letter-spacing: 0.045em; -webkit-font-smoothing: antialiased; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.connect__btn { transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1), color 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
/* Under a mouse a button fades slowly to a lighter blue (a layer of it inside the button, opacity only) as its words
   darken; the same on the websites' Visit buttons and the menu's Instagram. Touch screens have none. */
.connect__btn, .connect__opt, .connect__go, .live-sites .work-item__visit, .menu .insta { position: relative; isolation: isolate; }
.connect__btn::after, .connect__opt::after, .connect__go::after, .live-sites .work-item__visit::after, .menu .insta::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--blue-soft); opacity: 0; transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1); will-change: opacity; pointer-events: none; }
.menu .insta { transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
@media (hover: hover) {
  .connect__btn:hover, .connect__opt:hover, .connect__go:hover, .live-sites .work-item__visit:hover, .menu .insta:hover { color: #061538; }
  .connect__btn:hover::after, .connect__opt:hover::after, .connect__go:hover::after, .live-sites .work-item__visit:hover::after, .menu .insta:hover::after { opacity: 1; }
}

.connect.is-open .connect__btn { opacity: 0; transform: scale(0.86); pointer-events: none; }
.connect__menu { display: flex; gap: 10px; width: max-content; visibility: hidden; transition: visibility 0s linear 0.45s; }
.connect.is-open .connect__menu { visibility: visible; transition: none; }
.connect__opt { opacity: 0; transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1), color 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.connect__opt:first-child { transform: translate3d(52%, 0, 0) scale(0.9); }
.connect__opt:last-child { transform: translate3d(-52%, 0, 0) scale(0.9); }
.connect.is-open .connect__opt { opacity: 1; transform: none; }
.connect.is-open .connect__opt:last-child { transition-delay: 0.04s; }
/* (the last step: the pressed choice's number or address on one pill, an arrow beside it - it takes the three pills'
   place as they shrink away) */
/* (the address itself is left as it is written, not in capitals) */
.connect__go { text-transform: none; letter-spacing: 0.02em; gap: 10px; opacity: 0; visibility: hidden; transform: scale(0.9); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1), color 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.45s; font-variant-numeric: tabular-nums; }
.connect__go svg { flex: none; width: 15px; height: 15px; color: inherit; }
.connect.is-go .connect__go { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease 0.08s, transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1) 0.08s, color 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s, border-color 0.35s, box-shadow 0.35s; }
.connect.is-go .connect__menu { visibility: hidden; transition: visibility 0s linear 0.3s; }
.connect.is-go .connect__opt { opacity: 0; transform: scale(0.86); transition-delay: 0s; pointer-events: none; }
@media (max-width: 420px) { .connect__opt { padding: 0 20px; } .connect__menu { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .connect__btn, .connect__opt, .connect__go { transition: opacity 0.2s; } }

/* Every few seconds a wave of light blue sweeps across the white Connect pills from the left - each turns light blue as
   it passes, then white again. Once it is pressed the two pills take turns, each its own way: across Email from the
   left, then up Call from the bottom. A soft-edged band inside the pill,
   moved by transform only, under the words. */
.connect__btn, .connect__opt, .connect__go { overflow: hidden; }
.connect__btn::before, .connect__opt::before, .connect__go::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; z-index: -1; width: 300%; background: linear-gradient(100deg, rgba(141, 182, 255, 0) 0%, rgba(141, 182, 255, 0.55) 18%, #8db6ff 31%, #8db6ff 69%, rgba(141, 182, 255, 0.55) 82%, rgba(141, 182, 255, 0) 100%); transform: translate3d(-100%, 0, 0); pointer-events: none; }
@keyframes connect-wave { 0%, 12% { transform: translate3d(-100%, 0, 0); } 37%, 45% { transform: translate3d(-33.3%, 0, 0); } 72%, 100% { transform: translate3d(33.4%, 0, 0); } }
/* (Call's rises instead: the same soft band, lying across the pill, coming up from below and away off the top) */
.connect__opt:last-child::before { right: 0; bottom: auto; width: auto; height: 300%; background: linear-gradient(to top, rgba(141, 182, 255, 0) 0%, rgba(141, 182, 255, 0.55) 18%, #8db6ff 31%, #8db6ff 69%, rgba(141, 182, 255, 0.55) 82%, rgba(141, 182, 255, 0) 100%); transform: translate3d(0, 33.4%, 0); }
@keyframes connect-rise { 0%, 12% { transform: translate3d(0, 33.4%, 0); } 37%, 45% { transform: translate3d(0, -33.3%, 0); } 72%, 100% { transform: translate3d(0, -100%, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .connect__btn::before, .connect__opt::before, .connect__go::before { animation: connect-wave 4.4s cubic-bezier(0.45, 0, 0.35, 1) infinite; will-change: transform; }
  .connect__opt:last-child::before { animation-name: connect-rise; animation-delay: 2.2s; }
  /* (nothing to see while it is faded away or not shown: it rests) */
  .connect.is-away *::before, .connect:not(.is-open) .connect__opt::before, .connect:not(.is-go) .connect__go::before, .connect.is-open .connect__btn::before { animation-play-state: paused; }
}

/* ... and the blue buttons have the same wave, in a lighter blue that keeps their white words readable: the websites'
   "Visit website" buttons (each row a little after the one above, so it runs down the list), "Load more projects" and
   the menu's Instagram button. It rests while the button isn't shown. */
.live-sites .work-item__visit, .more-btn, .menu .insta { overflow: hidden; }
.live-sites .work-item__visit::before, .more-btn::before, .menu .insta::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; z-index: -1; width: 300%; background: linear-gradient(100deg, rgba(99, 147, 234, 0) 0%, rgba(99, 147, 234, 0.55) 18%, #6393ea 31%, #6393ea 69%, rgba(99, 147, 234, 0.55) 82%, rgba(99, 147, 234, 0) 100%); transform: translate3d(-100%, 0, 0); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .live-sites .work-item__visit::before, .more-btn::before, .menu .insta::before { animation: connect-wave 4.4s cubic-bezier(0.45, 0, 0.35, 1) infinite; will-change: transform; }
  .live-sites .work-item:nth-child(4n + 2) .work-item__visit::before { animation-delay: 0.35s; }
  .live-sites .work-item:nth-child(4n + 3) .work-item__visit::before { animation-delay: 0.7s; }
  .live-sites .work-item:nth-child(4n + 4) .work-item__visit::before { animation-delay: 1.05s; }
  .more-btn::before { animation-delay: 1.4s; }
  .js .live-sites .work-item:not(.is-on) .work-item__visit::before, .js .live-sites .more-btn:not(.is-on)::before, .menu:not(.is-open) .insta::before { animation-play-state: paused; }
}

/* The websites: each one a rounded row showing its domain, with its "Visit website" button at the end. The rows all
   share the same dark blue. The button is Connect's twin in blue: the same shape, words and hover. */
.live-sites .work-list { border-top: 0; display: grid; gap: 10px; }
.live-sites .work-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; padding: 10px 10px 10px clamp(22px, 3vw, 38px); border-bottom: 0; border-radius: 999px; background: #0b1f52; }
.live-sites .work-item__domain { min-width: 0; overflow-wrap: anywhere; color: var(--text); font: 500 clamp(15px, 1.5vw, 20px)/1.25 var(--sans); letter-spacing: 0.02em; text-transform: none; }
.live-sites .work-item__visit { position: relative; isolation: isolate; flex: none; margin: 0; padding: 0 28px; box-shadow: none; background: #3566c2; color: #fff; font: 600 15px/1 var(--sans); letter-spacing: 0.045em; text-transform: uppercase; -webkit-font-smoothing: antialiased; transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s var(--ease); }
.live-sites .work-item__go { display: inline-block; }   /* (under a mouse only the colour fades: the arrow, the button and the row keep still) */
.live-sites .work-item__visit:hover { background: #3566c2; }
.live-sites .work-item__visit:active { transform: scale(0.97); }
/* (phones: the button goes under the domain, so the row is taller and its corners a little less round) */
@media (max-width: 599px) {
  .live-sites .work-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; border-radius: 28px; }
  .live-sites .work-item__domain { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .live-sites .work-item__visit, .live-sites .work-item__go { transition: none; } }
/* The first screen doesn't travel up with the page: all of it - the slideshow, the words, Connect - stays where it is
   and fades away in turn (js/site.js) while the websites' list comes up over it. It is sticky inside .stage, which
   reaches a third of a screen further down than it takes up (an empty stretch, taken back as a negative margin), so it
   has room to stay in; after that it travels off, already invisible, and the slideshow stops drawing. */
.sites.wrap { --pin: 0px; position: sticky; top: var(--nav-h); z-index: 0; }
.stage { margin-bottom: -34svh; }
.stage::after { content: ''; display: block; height: 34svh; pointer-events: none; }
.sites .work-tunnel { flex: none; }
.sites .work-tunnel .tf-frame { position: relative; z-index: 0; }
.sites .tf-frame, .sites .connect, .sites .work-tunnel__words, .sites > .sites__title { will-change: opacity; }
.sites .work-tunnel__words { position: relative; z-index: 4; pointer-events: none; }
.connect.is-away > *, .connect.is-away .connect__opt { pointer-events: none; }
/* (phones: "Our Work" is right under the button, so the list waits too: the whole page is held still over the first
   26% of a screen of scrolling, while everything above "Our Work" fades, and then goes up as one) */
@media (max-width: 599px) {
  .hold::after { content: ''; display: block; height: 26svh; pointer-events: none; }
  .hold__in { position: sticky; top: var(--nav-h); }
  .stage { margin-bottom: 0; }
  .stage::after { content: none; }
  .sites.wrap { position: relative; top: auto; }
}
.live-sites.wrap { position: relative; z-index: 1; }

/* The header stays put while the page scrolls. Once the page has moved, its backing fades in: a lighter blue along its
   top edge, fading down into the page's own blue by two thirds of the way - the bottom third is the page's colour, so
   there is no line under it, just the page passing behind - opacity only */
/* (always there, even at the very top: the header is always the page's plain dark blue, so the wave never shows in it
   with an edge along its foot; the soft fade under it comes in once the page moves) */
.js:not(.menu-open):not(.menu-closing) .nav__bg { opacity: 1; }
.js:not(.nav-solid) .nav__fade { opacity: 0; }
.nav__fade { transition: opacity 0.5s var(--ease); }
.nav__bg::before { background: var(--bg); }   /* (no lighter shade along its top: the header's backing is simply the page's colour) */
/* (and under it the page's blue thins out to nothing over a short stretch, so what scrolls up fades away as it comes
   to the header instead of meeting its edge; it takes no clicks) */
.nav__bg { pointer-events: none; }
/* (that stretch is the page's own dark blue, thinned out to nothing by a mask) */
.nav__fade { position: absolute; left: 0; right: 0; top: 100%; height: clamp(64px, 11vh, 112px); background: var(--bg); pointer-events: none; overflow: hidden;
  /* (a long, eased thinning - many small steps, so there is no visible edge anywhere along it) */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.94) 10%, rgba(0, 0, 0, 0.83) 20%, rgba(0, 0, 0, 0.69) 30%, rgba(0, 0, 0, 0.54) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.27) 60%, rgba(0, 0, 0, 0.16) 70%, rgba(0, 0, 0, 0.08) 80%, rgba(0, 0, 0, 0.025) 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.94) 10%, rgba(0, 0, 0, 0.83) 20%, rgba(0, 0, 0, 0.69) 30%, rgba(0, 0, 0, 0.54) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.27) 60%, rgba(0, 0, 0, 0.16) 70%, rgba(0, 0, 0, 0.08) 80%, rgba(0, 0, 0, 0.025) 90%, transparent 100%); }

/* Phones only: the logo lives in the header (the intro sends it there by itself: js/site.js), so the title and the
   slideshow start right under the header instead of half-way down the screen; "Design. Build. Launch. Grow." sits
   under the slideshow and the button under that, in the flow of the page, saying "Connect with us now"; the websites'
   list follows straight on */
.connect__long { display: none; }
@media (max-width: 599px) {
  .sites.wrap { justify-content: flex-start; min-height: 0; padding-bottom: 16px; }
  /* (the title sits half-way between the header's bottom edge and the top of the slideshow's cards - which start 30.6%
     of the way down the slideshow's box - without moving the slideshow: what it gains above, it gives up below) */
  .sites > .sites__title { --g: calc(clamp(6px, 1.6vh, 18px) + clamp(4px, 1.5vh, 20px)); --f: clamp(260px, 40vh, 360px); position: relative; z-index: 1;
    margin-top: calc((var(--g) + var(--f) * 0.306) / 2); margin-bottom: calc(var(--g) - (var(--g) + var(--f) * 0.306) / 2); }
  .sites .work-tunnel { display: flex; flex-direction: column; }
  .sites .work-tunnel .tf-frame { order: 1; }
  /* (half-way between the bottom of the cards - 69.4% of the way down the slideshow's box - and the button) */
  .sites .work-tunnel__words { --f: max(300px, clamp(260px, 40vh, 360px)); order: 2; height: auto; padding-top: 14px; top: calc(2px - var(--f) * 0.153); }
  .connect { order: 3; position: relative; left: auto; right: auto; bottom: auto; align-self: center; margin-top: 18px; }
  .live-sites.wrap { padding-top: 28px; }
  .connect__short { display: none; }
  .connect__long { display: inline; }
}

/* The page's background moves as a wave: lighter blue sweeps across the dark blue on a slant - from the left and from
   above, away to the right - so the colour changes across the page in turn, not all of it at once. It is one smooth
   gradient, leaning (125 degrees: its crests run down and to the left), drawn at full sharpness three screens wide and
   sliding along by one whole wavelength every 18 seconds, then starting again - transform only, at a steady pace.
   It lives in the lower part of the page: it is at full strength over the bottom of the screen and thins out upward
   (the page's dark blue laid over it in a long, eased fade), reaching nothing a little below the header's bottom edge - so the
   header, and the phone's own status strip above it, which no page can colour, always stay the plain dark blue. (That
   is the dark blue laid over, not a mask: Safari clips a masked layer to the screen, which would cut the background
   off behind its bars; the layer itself reaches well past the top and bottom of the screen for the same reason.)
   It shows once the intro has handed over (js/site.js sets .breathing); not for reduced motion. (The body lets the
   layer show: the page's dark blue is the html's own. The old sky and wash layers stay off.) */
body { background: transparent; }
.work-sky, .wash { display: none !important; }
.breathe { position: fixed; inset: -40vh 0; z-index: -1; overflow: hidden; pointer-events: none; }
.breathe::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(40vh + var(--nav-h) + 72vh);
  background: linear-gradient(to bottom, var(--bg) calc(40vh + var(--nav-h) + 8vh), rgba(6, 21, 58, 0.97) calc(40vh + var(--nav-h) + 13vh), rgba(6, 21, 58, 0.88) calc(40vh + var(--nav-h) + 19vh), rgba(6, 21, 58, 0.74) calc(40vh + var(--nav-h) + 26vh), rgba(6, 21, 58, 0.57) calc(40vh + var(--nav-h) + 34vh), rgba(6, 21, 58, 0.4) calc(40vh + var(--nav-h) + 42vh), rgba(6, 21, 58, 0.25) calc(40vh + var(--nav-h) + 50vh), rgba(6, 21, 58, 0.13) calc(40vh + var(--nav-h) + 58vh), rgba(6, 21, 58, 0.05) calc(40vh + var(--nav-h) + 65vh), rgba(6, 21, 58, 0) 100%); }
.wave { opacity: 0; transition: opacity 2.4s var(--ease); }
.wave > i {
  position: absolute; top: 0; bottom: 0; left: -200vw; width: 300vw; will-change: transform;
  background: repeating-linear-gradient(125deg, rgba(47, 111, 224, 0.0) 0.0vw, rgba(47, 111, 224, 0.006) 4.1vw, rgba(47, 111, 224, 0.024) 8.19vw, rgba(47, 111, 224, 0.054) 12.29vw, rgba(47, 111, 224, 0.095) 16.38vw, rgba(47, 111, 224, 0.146) 20.48vw, rgba(47, 111, 224, 0.206) 24.57vw, rgba(47, 111, 224, 0.273) 28.67vw, rgba(47, 111, 224, 0.345) 32.76vw, rgba(47, 111, 224, 0.422) 36.86vw, rgba(47, 111, 224, 0.5) 40.95vw, rgba(47, 111, 224, 0.578) 45.05vw, rgba(47, 111, 224, 0.655) 49.14vw, rgba(47, 111, 224, 0.727) 53.23vw, rgba(47, 111, 224, 0.794) 57.33vw, rgba(47, 111, 224, 0.854) 61.42vw, rgba(47, 111, 224, 0.905) 65.52vw, rgba(47, 111, 224, 0.946) 69.62vw, rgba(47, 111, 224, 0.976) 73.71vw, rgba(47, 111, 224, 0.994) 77.81vw, rgba(47, 111, 224, 1.0) 81.9vw, rgba(47, 111, 224, 0.994) 86.0vw, rgba(47, 111, 224, 0.976) 90.09vw, rgba(47, 111, 224, 0.946) 94.19vw, rgba(47, 111, 224, 0.905) 98.28vw, rgba(47, 111, 224, 0.854) 102.38vw, rgba(47, 111, 224, 0.794) 106.47vw, rgba(47, 111, 224, 0.727) 110.57vw, rgba(47, 111, 224, 0.655) 114.66vw, rgba(47, 111, 224, 0.578) 118.76vw, rgba(47, 111, 224, 0.5) 122.85vw, rgba(47, 111, 224, 0.422) 126.95vw, rgba(47, 111, 224, 0.345) 131.04vw, rgba(47, 111, 224, 0.273) 135.14vw, rgba(47, 111, 224, 0.206) 139.23vw, rgba(47, 111, 224, 0.146) 143.32vw, rgba(47, 111, 224, 0.095) 147.42vw, rgba(47, 111, 224, 0.054) 151.52vw, rgba(47, 111, 224, 0.024) 155.61vw, rgba(47, 111, 224, 0.006) 159.71vw, rgba(47, 111, 224, 0.0) 163.8vw);
}
@keyframes wave-slide { to { transform: translate3d(200vw, 0, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .wave > i { animation: wave-slide 18s linear infinite; }
  .breathing .wave { opacity: 0.62; }
}

/* "Our Work": in the same hand and the same run of colours as "Different Websites" */
.live-sites__title { scroll-margin-top: 64px; }
.live-sites__title .sites__script { display: block; width: max-content; max-width: 100%; margin-inline: auto; padding-inline: 0.12em; font-family: "Dancing Script", "Snell Roundhand", cursive; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 1.32em; line-height: 1.15; }

/* ... which becomes "Our Projects" further up the screen (js/site.js: .is-projects, --ours): the two lie one over the
   other, "Our" in the same spot in both, sliding along as "Work" fades out and "Projects" fades in */
.live-sites__words { display: grid; justify-items: center; --ours: 0px; }
.live-sites__words > .sites__script { grid-area: 1 / 1; transition: transform 0.8s cubic-bezier(0.45, 0, 0.2, 1); will-change: transform; }
.live-sites__words > :last-child { transform: translate3d(var(--ours), 0, 0); }
.live-sites__words.is-projects > :first-child { transform: translate3d(calc(-1 * var(--ours)), 0, 0); }
.live-sites__words.is-projects > :last-child { transform: none; }
.live-sites__words > :last-child .live-sites__our { opacity: 0; }
.live-sites__end { display: inline-block; transition: opacity 0.45s ease; will-change: opacity; }
.live-sites__words > :last-child .live-sites__end, .live-sites__words.is-projects > :first-child .live-sites__end { opacity: 0; }
.live-sites__words.is-projects > :first-child .live-sites__end { transition-delay: 0s; }
.live-sites__words:not(.is-projects) > :first-child .live-sites__end, .live-sites__words.is-projects > :last-child .live-sites__end { opacity: 1; transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .live-sites__words > .sites__script, .live-sites__end { transition: none; } }

/* Under the websites: the first four show, then "Load more projects" (Connect's twin) for the rest, then what the
   company does */
/* (the page never shifts itself to make up for the websites coming in) */
html, body, .hold, .live-sites, .site-footer { overflow-anchor: none; }
.work-list.is-short > :nth-child(n + 5) { display: none; }
.more-btn { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; min-height: 48px; margin: clamp(24px, 3.5vh, 36px) auto 0; padding: 0 28px; border: 0; border-radius: 99px; background: #3566c2; color: #fff; font: 600 15px/1 var(--sans); letter-spacing: 0.045em; text-transform: uppercase; -webkit-font-smoothing: antialiased; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.more-btn[hidden] { display: none; }
.more-btn::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--blue-soft); opacity: 0; transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1); will-change: opacity; pointer-events: none; }
@media (hover: hover) { .more-btn:hover { color: #061538; } .more-btn:hover::after { opacity: 1; } }
.more-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px #fff; }
.about-us { margin-top: clamp(52px, 8vh, 92px); text-align: center; text-transform: none; }
.about-us__title { font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 400; line-height: 1.06; }
.about-us__title .sites__script { display: block; font-family: "Dancing Script", "Snell Roundhand", cursive; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 1.32em; line-height: 1.2; }
.about-us p { margin: clamp(12px, 2vh, 20px) auto 0; max-width: 62ch; color: #dbe4f8; font: 400 clamp(16px, 1.35vw, 20px)/1.6 var(--sans); letter-spacing: 0.01em; text-wrap: pretty; }

@media (hover: none) { .connect__btn::after, .connect__opt::after, .connect__go::after, .live-sites .work-item__visit::after, .menu .insta::after, .more-btn::after { content: none; } }

/* Phones: the menu has no colour of its own. The page's words fade away and the menu's links come in over the very same
   background, its wave still travelling; the header is left exactly as it was. */
@media (max-width: 599px) {
  .menu .menu__blob { display: none; }
  .hold, .site-footer { transition: opacity 0.35s ease 0.12s; }
  .menu-open .hold, .menu-open .site-footer { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
  .menu-open .nav__bg, .menu-closing .nav__bg { opacity: 0; transition: none; }
  /* (and the wave thins away to the page's dark blue before the foot of the screen, which is plain dark blue all the
     way down behind Safari's bar - so the strip it colours under its bar matches, with no edge where the two meet) */
  .breathe::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: calc(40vh + 42vh); background: linear-gradient(to bottom, rgba(6, 21, 58, 0) 0, rgba(6, 21, 58, 0.18) 7vh, rgba(6, 21, 58, 0.45) 15vh, rgba(6, 21, 58, 0.75) 24vh, rgba(6, 21, 58, 0.94) 33vh, var(--bg) 40vh); opacity: 0; transition: opacity 0.35s ease 0.12s; will-change: opacity; pointer-events: none; }
  .menu-open .breathe::before { opacity: 1; transition: opacity 0.3s ease; }
  .js.nav-solid.menu-open:not(.x) .nav__bg, .js.nav-solid.menu-closing:not(.x) .nav__bg { opacity: 1; }
}

/* The footer runs to the page's corners on a computer, like the rest of the page (no narrower column in the middle),
   and carries "Created by Guy K Web" at its foot, as the websites Guy K Web makes do. */
.site-footer .wrap { max-width: none; }
@media (min-width: 1000px) { .site-footer .wrap { padding-inline: max(46px, env(safe-area-inset-left)); } }
.credit { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #c4cce6; text-decoration: none; text-transform: none; letter-spacing: 0.02em; transition: color 0.2s ease; }
.site-footer__bottom .credit { color: #c4cce6; }
.site-footer__bottom .credit:hover { color: #fff; }
.credit img { width: 28px; height: 28px; }
.credit span { display: grid; line-height: 1.3; }
.credit small { font-size: 0.78em; opacity: 0.75; text-decoration: underline; text-underline-offset: 3px; }

/* Selected (reached with the keyboard, or a field being typed in): the highlight is the thing's own line - it fades
   to the light blue and grows thicker, smoothly, and back again - not a second ring standing off it. (The general
   rule for everything else is in site.css; these are the things here whose line is a border or a drawn edge.) */
.connect__btn, .connect__opt, .connect__go { transition-property: opacity, transform, color, visibility, border-color, box-shadow; }
.connect__btn, .connect__opt, .connect__go { box-shadow: inset 0 0 0 0 rgba(141, 182, 255, 0); }
.connect__btn:focus-visible, .connect__opt:focus-visible, .connect__go:focus-visible { outline: none; animation: none; border-color: #3566c2; box-shadow: inset 0 0 0 2.5px #3566c2; transition-duration: 0.35s; }
.live-sites .work-item__visit:focus-visible { outline: none; animation: none; background: #3566c2; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
@media (hover: hover) { .live-sites .work-item__visit:focus-visible:hover { color: #061538; box-shadow: inset 0 0 0 2.5px #fff; } }

/* A computer's screen (and a tablet on its side) has "Different Websites, different businesses." over the slideshow
   too, as phones do: in the middle, just above the cards (which start 44% of the way down the slideshow's box). The
   intro's logo waits between the header and it. */
@media (min-width: 600px) and (orientation: landscape) and (min-height: 600px) {
  .sites.wrap { --f: calc(100svh - var(--nav-h) - var(--tw)); }
  .sites > .sites__title { left: 0; right: 0; top: calc(max(var(--f), 300px) * 0.385); z-index: 2; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; transform: translateY(-100%); text-align: center; pointer-events: none; font-size: min(clamp(1.8rem, 3vw, 3.4rem), 4.8svh); }
  .sites > .sites__title .sites__script, .sites > .sites__title em { margin-inline: auto; }
}

/* On a computer the page opens with the title, the Connect button and the words under it a tenth of a screen higher
   than the slideshow's box would put them, which is where they used to be after a small scroll. The slideshow itself
   stays where it is. Nothing moves: these are their starting places. */
@media (min-width: 600px) and (orientation: landscape) and (min-height: 600px) {
  .sites.wrap { --lift: 40px; }   /* (a tablet on its side: a little higher) */
  .sites > .sites__title { top: calc(max(var(--f), 300px) * 0.385 - var(--lift)); }
  .sites .connect { bottom: calc(var(--pin, 0px) + var(--tw, 0px) + 12px + var(--lift)); }
  .sites .work-tunnel__words { top: calc(-1 * var(--lift)); }
}
@media (min-width: 600px) and (orientation: landscape) and (min-height: 600px) and (hover: hover) and (pointer: fine) { .sites.wrap { --lift: 10svh; } }

/* A very short screen (a phone on its side): the first screen stays still, so all of it has to fit: the
   slideshow may be shorter than elsewhere. */
@media (min-width: 600px) and (max-height: 599px) and (orientation: landscape) {
  .sites .work-tunnel .tf-frame { min-height: 180px; }
}

/* iPads held upright: the footer's line of words takes a row of its own, so the three columns under it have room */
@media (min-width: 800px) and (max-width: 1099px) {
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__brand p { max-width: none; }
}
