/* ==========================================================================
   docksurge.com
   Light and airy: DockSurge navy for text and its blue for accents and glows
   (brand edition 2), on a white page with large, light, tightly set headlines.
   The feel follows the owner's reference (antigravity.google, Nov 2026); the
   shapes, colours and motion are DockSurge's own.
   One typeface, Inter, whose optical sizes tighten it at display sizes.
   Contrast on white: --ink 17:1, --text 12:1, --muted 6.2:1, --blue 5.8:1.
   Every animation stops for visitors who ask for reduced motion.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --ink: #0A1324;
  --text: #2E3648;
  --muted: #5B6578;
  --faint: #8A93A6;
  --line: #E6EAF1;
  --line-strong: #D3DAE6;
  --navy: #02173C;
  --night: #010A1F;
  --blue: #0055FE;
  --blue-soft: #EAF1FF;
  --sky: #3FA2FF;
  --radius: 28px;
  --header: 72px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 460; letter-spacing: -.035em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
/* The gradient repeats every two widths of the words and slides one repeat
   along, so the light keeps travelling through them without a seam. */
.grad {
  background: linear-gradient(90deg, #0055FE 0%, #2F7BFF 25%, #3FA2FF 50%, #2F7BFF 75%, #0055FE 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.soft-ink { color: var(--faint); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15.5px/1 var(--font); letter-spacing: -.005em; color: var(--ink);
  white-space: nowrap; text-decoration: none !important; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease), box-shadow .3s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy); box-shadow: 0 14px 32px -14px rgba(2, 23, 60, .6); }
.btn-soft { background: #F1F3F7; border-color: var(--line); }
.btn-soft:hover { background: #E9EDF4; border-color: var(--line-strong); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue-soft); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.link-arrow .icon { width: 18px; height: 18px; color: var(--blue); transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--blue); text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ------------------------------------------------------------------ header */

/* After the owner's reference, olee.ai (measured 19 Nov 2026), in DockSurge's
   own colours and shapes:
   - At the top of the page the bar is an open strip across the whole width.
   - After a short scroll (site.js adds .is-scrolled) a glassy white fades in
     within 0.2 s, while the bar draws in over 0.7 s, easing in and out, to a
     pill the width of the page's content. The logo, links and button stay
     where they are: only the bar's edges move.
   - Services and Projects open a large menu (.mega) over a greyed, blurred
     page (.nav-veil). At the top of the page, bar and menu make one white
     sheet; once scrolled, the menu is a rounded card under the pill.
   - Outside the bar and the menu, clicks go through to the page. */
.site-header {
  --bar-in: max(12px, calc((100% - 1240px) / 2 - 8px));   /* the pill's distance from each side */
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header); padding-top: 12px; pointer-events: none;
}
.header-bar {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: -1;
  border: 1px solid transparent; border-radius: 0; background-color: rgba(255, 255, 255, 0);
  transition: top .7s ease-in-out, bottom .7s ease-in-out, left .7s ease-in-out, right .7s ease-in-out, border-radius .7s ease-in-out,
    background-color .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.is-scrolled .header-bar {
  top: 12px; bottom: 4px; left: var(--bar-in); right: var(--bar-in); border-radius: 999px;
  border-color: rgba(2, 23, 60, .07); background-color: rgba(255, 255, 255, .74);
  box-shadow: 0 8px 32px rgba(2, 23, 60, .13), inset 0 1px 0 rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
.menu-open .header-bar { background-color: #fff; }
.header-row {
  position: relative; display: flex; align-items: center; gap: 36px; height: 56px;
  pointer-events: auto; transition: padding .7s ease-in-out;
}
.brand img { width: 150px; }
.nav { display: flex; align-items: center; justify-content: flex-end; flex: 1; }
/* The links sit in the middle of the bar, whatever is either side of them. */
.nav-links { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 6px; transform: translate(-50%, -50%); }
.nav-links > li > a {
  --pad: 14px;
  position: relative; display: block; padding: 10px var(--pad); color: var(--text);
  font: 450 15px/1 var(--font); text-decoration: none; transition: color .2s;
}
/* The page you are on is underlined in blue; hovering draws a line out from the middle. */
.nav-links > li > a::after {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 1px; height: 2px; border-radius: 2px;
  background: var(--line-strong); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"], .has-menu.is-open > a { color: var(--ink); }
.nav-links > li > a:hover::after { transform: scaleX(1); }
.nav-links > li > a[aria-current="page"]::after { background: var(--blue); transform: scaleX(1); }
.has-menu { display: flex; align-items: center; }
.has-menu > a { padding-right: 4px; }
.has-menu > a::after { right: 4px; }
.menu-btn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.menu-btn .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.has-menu.is-open .menu-btn .icon, .has-menu.sub-open .menu-btn .icon { transform: rotate(180deg); }
.sublist, .nav-place { display: none; }   /* the phone menu's own parts */

/* ---- the large menus */

.mega {
  position: absolute; top: var(--header); left: 0; right: 0; pointer-events: none;
  background: #fff; border: 1px solid transparent; border-top: 0; border-radius: 0;
  box-shadow: 0 40px 60px -40px rgba(2, 23, 60, .28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease-out, transform .22s ease-out, visibility 0s linear .22s,
    top .7s ease-in-out, left .7s ease-in-out, right .7s ease-in-out, border-radius .7s ease-in-out;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.is-scrolled .mega {
  top: calc(var(--header) + 4px); left: var(--bar-in); right: var(--bar-in); border-radius: 28px;
  border: 1px solid rgba(2, 23, 60, .07); box-shadow: 0 30px 70px -30px rgba(2, 23, 60, .35);
}
.mega-inner { padding-top: 36px; padding-bottom: 26px; }
.mega-grid { display: grid; grid-template-columns: 330px repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.mega-grid-work { grid-template-columns: repeat(3, minmax(0, 1fr)) 340px; }
.mega-head { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.mega-col { display: grid; gap: 4px; align-content: start; }
.mega-item { display: flex; gap: 12px; margin: 0 -12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); text-decoration: none !important; transition: background .2s; }
.mega-item:hover { background: var(--bg-soft); }
.mega-item > .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--faint); transition: color .2s; }
.mega-item:hover > .icon { color: var(--blue); }
.mega-item b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.mega-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* The dark card at the start of the Services menu, with a quotation peeking out. */
.mega-feature {
  position: relative; overflow: hidden; padding: 24px 24px 0; border-radius: 22px; color: #fff;
  background: radial-gradient(110% 80% at 100% 115%, rgba(0, 85, 254, .6), rgba(0, 85, 254, 0) 62%), var(--night);
}
.mega-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.mega-brand img { width: 26px; height: 26px; border-radius: 8px; }
.mega-feature-text { max-width: 25em; margin-top: 12px; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.55; }
.mega-feature-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0047D6; box-shadow: 0 12px 28px -12px rgba(0, 85, 254, .7); }
/* "Let's Talk": the paper plane lifts off a little on hover. */
.nav-cta { font-weight: 550; }
.nav-cta .icon { width: 16px; height: 16px; }
.nav-cta:hover .icon { transform: translate(2px, -2px); }
.btn-xs { min-height: 36px; padding: 0 16px; font-size: 14px; }
.mega-link-light { display: inline-flex; align-items: center; gap: 4px; color: #8FB8FF; font-size: 14px; font-weight: 500; }
.mega-link-light:hover { color: #fff; text-decoration: none; }
.mega-link-light .icon, .mega-foot .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.mega-link-light:hover .icon, .mega-foot a:hover .icon { transform: translateX(3px); }
/* Below the words and button, running off the card's right and bottom edges. */
.mega-peek {
  margin: 24px -24px -24px 40px; padding: 14px 18px 32px; border-radius: 14px 0 0 0;
  background: #fff; color: var(--ink); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); font-size: 11px;
}
.peek-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.peek-top img { width: 70px; }
.peek-top .pill { padding: 2px 7px; font-size: 9.5px; }
.peek-title { margin-top: 10px; font-size: 15px; font-weight: 450; letter-spacing: -.02em; }
.peek-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #F0F2F6; color: var(--text); }
.peek-line b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.peek-total { border-bottom: 0; color: var(--muted); }
.peek-total b { color: var(--blue); }

/* Featured work, at the end of the Projects menu. */
.mega-work { padding-left: 36px; border-left: 1px solid var(--line); }
.mega-work-card { display: block; color: var(--ink); text-decoration: none !important; }
.mega-shot {
  display: block; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #F3F6FC 0%, #EBF0F8 100%); font-size: 11.5px;
}
.shot-bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.shot-bar b { font-weight: 500; }
.shot-bar .live { margin: 0; font-size: 10.5px; }
.shot-row { display: grid; grid-template-columns: .4fr 1.4fr .5fr 1fr; align-items: center; gap: 8px; padding: 7px 0; }
.shot-row + .shot-row { border-top: 1px solid #E3E8F0; }
.shot-row .pill { padding: 2px 8px; font-size: 10px; }
.mega-kicker { display: block; margin-top: 16px; color: var(--muted); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.mega-title { display: block; margin-top: 6px; font-size: 17px; font-weight: 500; letter-spacing: -.015em; transition: color .2s; }
.mega-work-card:hover .mega-title { color: var(--blue); }
.mega-desc { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mega-foot { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.mega-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 15px; font-weight: 500; }

/* The page behind an open menu greys and blurs, as on the reference. */
.nav-veil {
  position: fixed; inset: 0; z-index: 45; background: rgba(10, 19, 36, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease-out, visibility 0s linear .25s;
}
.nav-veil.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
/* While the phone menu covers the screen, the page under it stays still. */
html.nav-locked { overflow: hidden; }

.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .i-close, .nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* ------------------------------------------------------------------ home hero */

.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header) + 104px) 0 112px; text-align: center; }
.surge, .vortex { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 180px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg)); }
/* "Built in Sri Lanka", with the lion from the national flag (public domain;
   see THIRD-PARTY.md), after the owner's reference. */
.origin { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 16.5px; font-weight: 450; letter-spacing: -.005em; line-height: 1.2; }
.origin img { width: 30px; height: 24px; }
.hero h1 { max-width: 12.5em; margin: 30px auto 0; font-size: clamp(2.7rem, 6vw, 5.4rem); font-weight: 450; line-height: 1.02; letter-spacing: -.045em; }
.lead { color: var(--muted); font-size: 1.14rem; line-height: 1.6; }
.hero .lead { max-width: 37em; margin: 28px auto 0; font-size: clamp(1.06rem, 1.35vw, 1.2rem); }
.hero .actions { justify-content: center; margin-top: 40px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--muted); font-size: 14.5px; }
.hero-note .icon { width: 17px; height: 17px; color: var(--blue); }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero .origin, .hero h1, .hero .lead, .hero .actions, .hero-note { animation: rise 1s var(--ease) both; }
.hero h1 { animation-delay: .08s; }
.hero .lead { animation-delay: .18s; }
.hero .actions { animation-delay: .28s; }
.hero-note { animation-delay: .38s; }

/* ------------------------------------------------------------------ showcase */

.showcase { padding-bottom: 32px; }
.media-card { position: relative; margin: 0; overflow: hidden; border-radius: 36px; background: var(--night); aspect-ratio: 16 / 8; box-shadow: 0 50px 100px -50px rgba(2, 23, 60, .55); }
.media-card picture { display: block; height: 100%; }
/* The photo drifts slowly closer and back, and (site.js, with a mouse) shifts
   a little against the pointer through --px and --py. */
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.media-card img {
  width: 100%; height: 100%; object-fit: cover; transform-origin: 58% 42%;
  animation: drift 24s ease-in-out infinite alternate;
  translate: var(--px, 0px) var(--py, 0px); transition: translate 1.2s var(--ease);
}
.media-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1, 10, 31, .82) 0%, rgba(1, 10, 31, .25) 40%, rgba(1, 10, 31, 0) 62%); }
.media-caption { position: absolute; left: 40px; right: 40px; bottom: 36px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.media-caption p { max-width: 20em; color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.85rem); font-weight: 450; line-height: 1.2; letter-spacing: -.025em; }

.service-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.service-row li + li { border-left: 1px solid var(--line); }
.service-row a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 22px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none; transition: background .25s; }
.service-row li:first-child a { border-radius: 24px 0 0 24px; }
.service-row li:last-child a { border-radius: 0 24px 24px 0; }
.service-row a:hover { background: var(--bg-soft); }
.service-row .icon { width: 22px; height: 22px; color: var(--blue); }

/* ------------------------------------------------------------------ the waving row */

/* Tool icons in soft circles, rising and falling in a wave that travels
   slowly to the left. After the owner's reference (antigravity.google,
   measured 19 Nov 2026): 35 px either way, one wave across 14 circles, each
   circle rising and falling once in 7 s. The circles never move sideways;
   each one's delay sets its place in the wave (half a second per circle).
   The row is wider than the page and fades out at both sides; site.js
   pauses it while it is off screen. */
.wave-band {
  overflow: hidden; padding: 72px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.wave-row { display: flex; justify-content: center; gap: 10px; }
.wave-row li { flex: none; animation: wave 7s ease-in-out infinite; }
.wave-band.is-off li { animation-play-state: paused; }
.wave-row span {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: #F1F4F9; color: var(--ink); transition: background .3s, color .3s;
}
.wave-row span:hover { background: var(--blue-soft); color: var(--blue); }
.wave-row .icon { width: 30px; height: 30px; stroke-width: 1.5; }
@keyframes wave { 0%, 100% { transform: translateY(-35px); } 50% { transform: translateY(35px); } }
@keyframes wave-sm { 0%, 100% { transform: translateY(-22px); } 50% { transform: translateY(22px); } }
.wave-row li:nth-child(2) { animation-delay: -.5s; }
.wave-row li:nth-child(3) { animation-delay: -1s; }
.wave-row li:nth-child(4) { animation-delay: -1.5s; }
.wave-row li:nth-child(5) { animation-delay: -2s; }
.wave-row li:nth-child(6) { animation-delay: -2.5s; }
.wave-row li:nth-child(7) { animation-delay: -3s; }
.wave-row li:nth-child(8) { animation-delay: -3.5s; }
.wave-row li:nth-child(9) { animation-delay: -4s; }
.wave-row li:nth-child(10) { animation-delay: -4.5s; }
.wave-row li:nth-child(11) { animation-delay: -5s; }
.wave-row li:nth-child(12) { animation-delay: -5.5s; }
.wave-row li:nth-child(13) { animation-delay: -6s; }
.wave-row li:nth-child(14) { animation-delay: -6.5s; }
.wave-row li:nth-child(15) { animation-delay: -7s; }
.wave-row li:nth-child(16) { animation-delay: -7.5s; }
.wave-row li:nth-child(17) { animation-delay: -8s; }
.wave-row li:nth-child(18) { animation-delay: -8.5s; }
.wave-row li:nth-child(19) { animation-delay: -9s; }
.wave-row li:nth-child(20) { animation-delay: -9.5s; }
.wave-row li:nth-child(21) { animation-delay: -10s; }
.wave-row li:nth-child(22) { animation-delay: -10.5s; }

/* ------------------------------------------------------------------ sections */

.section { padding: 136px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font: 500 13px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.section-head { max-width: 780px; margin-bottom: 72px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 18px; font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; }
.section-head .lead { margin-top: 22px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.section-head-row > div { max-width: 720px; }

.statement { max-width: 1040px; }
.statement h2 { margin-top: 22px; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; }
.statement .lead { max-width: 40em; margin-top: 30px; }
.statement .link-arrow { margin-top: 28px; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--line); }
.principles .num { color: var(--blue); font-size: 14px; font-weight: 500; }
.principles h3 { margin-top: 18px; font-size: 1.45rem; letter-spacing: -.025em; }
.principles p { margin-top: 12px; color: var(--muted); }

/* Two ways we help: panels of dots that gather into the panel's icon while
   the pointer is over them (site.js). Without the script the icon itself
   shows. */
.duo-head { max-width: 780px; margin-top: 128px; }
.duo-head h2 { margin-top: 18px; font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.duo-panel {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 560px; padding: 40px; border: 1px solid var(--line); border-radius: 32px; background: #fff;
  transition: border-color .4s, box-shadow .4s;
}
.duo-panel:hover { border-color: var(--line-strong); box-shadow: 0 40px 80px -48px rgba(2, 23, 60, .35); }
.dot-field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.duo-art { position: absolute; left: 50%; top: 34%; color: var(--blue); transform: translate(-50%, -50%); }
.duo-art .icon { width: 150px; height: 150px; stroke-width: 1.4; }
.has-dots .duo-art { display: none; }
.duo-copy { max-width: 25em; }
.duo-tag { color: var(--blue); font: 500 13px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.duo-copy h3 { margin-top: 14px; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.04em; }
.duo-copy h3 + p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.duo-copy .btn { margin-top: 26px; }

/* ------------------------------------------------------------------ work */

.work-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: center; }
.work-row + .work-row { margin-top: 136px; }
.work-row.flip .work-copy { order: 2; }
/* The picture keeps the wider column on whichever side it sits. */
.work-row.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.work-copy h3 { margin-top: 18px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -.04em; }
.work-copy > p { margin-top: 20px; color: var(--muted); font-size: 1.07rem; }
.work-copy .ticks { margin-top: 28px; }
.work-copy .link-arrow { margin-top: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font-size: 13px; font-weight: 500; }

.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.ticks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--blue); }

/* The illustrations: built in HTML, no customer data, labelled as such. */
.mock { position: relative; isolation: isolate; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); overflow: hidden; }
.mock-light { background: linear-gradient(180deg, #F3F6FC 0%, #EBF0F8 100%); border: 1px solid var(--line); }
.mock-dark { background: radial-gradient(120% 90% at 50% 110%, rgba(0, 85, 254, .55) 0%, rgba(0, 85, 254, 0) 55%), var(--night); }
.mock-label { position: absolute; right: 18px; bottom: 14px; color: var(--faint); font-size: 12px; letter-spacing: .02em; }
.mock-dark .mock-label { color: rgba(255, 255, 255, .45); }
.screen { position: relative; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(2, 23, 60, .06), 0 30px 60px -32px rgba(2, 23, 60, .35); }
.screen::before {
  content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 32px; opacity: .75;
  background: linear-gradient(120deg, rgba(0, 85, 254, .45), rgba(63, 162, 255, .4) 35%, rgba(130, 150, 255, .4) 65%, rgba(34, 195, 238, .35));
  filter: blur(26px); animation: breathe 6s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: .5; transform: scale(.97); } to { opacity: .9; transform: scale(1.03); } }
.screen-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.screen-bar b { font-weight: 500; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E3E7EE; }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #138A4A; font-size: 12.5px; font-weight: 500; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #1FB866; animation: beat 1.8s ease-out infinite; }
@keyframes beat { from { box-shadow: 0 0 0 0 rgba(31, 184, 102, .5); } to { box-shadow: 0 0 0 10px rgba(31, 184, 102, 0); } }
.board { padding: 8px 10px 14px; }
.board-row { display: grid; grid-template-columns: .55fr 1.6fr 1fr 1.15fr; align-items: center; gap: 10px; padding: 11px 10px; color: var(--ink); font-size: 14px; }
.board-row + .board-row { border-top: 1px solid #F0F2F6; }
.board-head { color: var(--faint); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.token { font-variant-numeric: tabular-nums; font-weight: 500; }
.pill { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill-green { background: #E6F7EE; color: #11703E; }
.pill-amber { background: #FFF3DD; color: #8A5A00; }
.pill-grey { background: #EEF1F5; color: #4F5A6E; }
.pill-violet { background: #EEEBFF; color: #4B3BB5; }

.ward { position: relative; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.ward-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.ward-head b { font-weight: 500; }
.langs { display: inline-flex; gap: 6px; }
.langs i { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 11px; font-style: normal; letter-spacing: .06em; }
.ward-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.room { position: relative; display: grid; gap: 8px; align-content: start; min-height: 92px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.room small { color: rgba(255, 255, 255, .55); font-size: 12px; font-variant-numeric: tabular-nums; }
.room .bar { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .25)); }
.room .w80 { width: 80%; } .room .w75 { width: 75%; } .room .w70 { width: 70%; } .room .w65 { width: 65%; } .room .w60 { width: 60%; } .room .w55 { width: 55%; } .room .w50 { width: 50%; }
.room em { position: absolute; right: 10px; top: 10px; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 10.5px; font-style: normal; }
.room .free { color: rgba(255, 255, 255, .4); font-size: 12.5px; }
.ward-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.ward-foot i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); animation: beat-sky 2.2s ease-out infinite; }
@keyframes beat-sky { from { box-shadow: 0 0 0 0 rgba(63, 162, 255, .55); } to { box-shadow: 0 0 0 10px rgba(63, 162, 255, 0); } }

.doc { padding: 26px 26px 22px; }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-top img { width: 112px; }
.doc-title { margin-top: 26px; color: var(--ink); font-size: 1.55rem; font-weight: 450; letter-spacing: -.03em; }
.doc-sub { color: var(--muted); font-size: 13.5px; }
.doc-lines { margin-top: 18px; border-top: 1px solid var(--line); }
.doc-lines div, .doc-total { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 14px; }
.doc-lines div { border-bottom: 1px solid #F0F2F6; color: var(--text); }
.doc-lines b, .doc-total b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.doc-total { color: var(--muted); }
.doc-total b { color: var(--blue); font-size: 1.05rem; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 12.5px; }
/* A picture of a real screen (or a mock-up with sample data) in the same
   window as the illustrations. The screen keeps its glow, so the picture is
   rounded rather than the window clipped. */
.screen-shot img { display: block; width: 100%; height: auto; border-radius: 0 0 18px 18px; }

/* ------------------------------------------------------------------ services */

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc {
  display: flex; flex-direction: column; gap: 14px; padding: 34px; border: 1px solid var(--line); border-radius: 24px;
  background: #fff; color: var(--text); text-decoration: none !important;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 30px 60px -36px rgba(2, 23, 60, .4); }
.svc-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 10px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); }
.svc-icon .icon { width: 25px; height: 25px; }
.svc h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.svc p { color: var(--muted); }
.svc .more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; color: var(--ink); font-weight: 500; font-size: 15px; }
.svc .more .icon { width: 17px; height: 17px; color: var(--blue); transition: transform .25s var(--ease); }
.svc:hover .more .icon { transform: translateX(4px); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); }
.steps li { position: relative; padding-top: 36px; }
/* A pulse runs along the steps, one after another. */
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); animation: beat-blue 3.2s ease-out infinite; }
.steps li:nth-child(2)::before { animation-delay: .8s; }
.steps li:nth-child(3)::before { animation-delay: 1.6s; }
.steps li:nth-child(4)::before { animation-delay: 2.4s; }
@keyframes beat-blue { 0% { box-shadow: 0 0 0 0 rgba(0, 85, 254, .32); } 60%, 100% { box-shadow: 0 0 0 14px rgba(0, 85, 254, 0); } }
.steps .num { color: var(--blue); font-size: 14px; font-weight: 500; }
.steps h3 { margin-top: 12px; font-size: 1.4rem; letter-spacing: -.025em; }
.steps p { margin-top: 10px; color: var(--muted); }

/* ------------------------------------------------------------------ call to action */

.cta-wrap { padding: 32px 0 136px; }
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 9vw, 128px) 32px; border-radius: 40px; text-align: center;
  background: radial-gradient(70% 90% at 50% 125%, rgba(0, 85, 254, .6) 0%, rgba(0, 85, 254, 0) 60%), var(--night);
}
.cta-panel::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 980px; height: 980px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(63, 162, 255, 0) 52%, rgba(63, 162, 255, .5) 58%, rgba(0, 85, 254, .25) 62%, rgba(0, 85, 254, 0) 68%);
  filter: blur(22px); animation: halo 8s ease-in-out infinite alternate;
}
@keyframes halo { from { transform: translate(-50%, -50%) scale(.95); opacity: .65; } to { transform: translate(-50%, -50%) scale(1.05); opacity: 1; } }
.cta-panel .eyebrow { color: var(--sky); }
.cta-panel h2 { max-width: 14em; margin: 18px auto 0; color: #fff; font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.cta-panel p { max-width: 34em; margin: 22px auto 0; color: rgba(255, 255, 255, .74); font-size: 1.12rem; }
.cta-panel .actions { justify-content: center; margin-top: 38px; }

/* ------------------------------------------------------------------ inner pages */

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header) + 120px) 0 104px; }
.page-hero .surge { opacity: .7; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 140px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg)); }
.page-hero h1 { max-width: 12em; margin-top: 22px; font-size: clamp(2.6rem, 5.6vw, 5rem); font-weight: 450; line-height: 1.02; letter-spacing: -.045em; }
.page-hero .lead { max-width: 38em; margin-top: 26px; }
.page-hero .actions { margin-top: 34px; }
.page-hero h1, .page-hero .lead, .page-hero .eyebrow, .page-hero .actions { animation: rise 1s var(--ease) both; }
.page-hero h1 { animation-delay: .08s; }
.page-hero .lead { animation-delay: .18s; }
.page-hero .actions { animation-delay: .26s; }

.service-list { display: grid; gap: 20px; }
.service { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 32px; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service .svc-icon { width: 72px; height: 72px; margin: 0; border-radius: 22px; }
.service .svc-icon .icon { width: 32px; height: 32px; }
.service h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.035em; }
.service > div > p { max-width: 46em; margin-top: 14px; color: var(--muted); }
.service .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin-top: 26px; }

.upkeep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.upkeep li { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.upkeep .icon { width: 26px; height: 26px; color: var(--blue); }
.upkeep h3 { margin-top: 18px; font-size: 1.2rem; letter-spacing: -.02em; }
.upkeep p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; align-items: start; }
.prose h2 { margin-top: 18px; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.04em; }
.prose p { margin-top: 20px; color: var(--muted); font-size: 1.08rem; }
.facts { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.facts dl { display: grid; gap: 22px; margin: 0; }
.facts dt { color: var(--faint); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; color: var(--ink); }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.values li { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.values .icon { width: 26px; height: 26px; color: var(--blue); }
.values h3 { margin-top: 18px; font-size: 1.2rem; letter-spacing: -.02em; }
.values p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact-main h2 { margin-top: 18px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.04em; }
.contact-main > p { margin-top: 18px; color: var(--muted); font-size: 1.07rem; }
/* At most two cards to a row, and two only while each is wide enough for the
   phone number on one line (222 px); a narrower column stacks them. A card
   left alone on the last row takes the whole row: in half of it the email
   address broke as "hello@docksurge.co / m". */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(222px, calc((100% - 14px) / 2)), 1fr)); gap: 14px; margin-top: 30px; }
.contact-cards:empty { display: none; }
.contact-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.contact-card { display: flex; align-items: flex-start; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none !important; transition: border-color .25s, box-shadow .3s; }
a.contact-card:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px -28px rgba(2, 23, 60, .35); }
.contact-card > .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.contact-card b { display: block; font-weight: 500; }
.contact-card span { color: var(--muted); overflow-wrap: anywhere; }
.contact-location { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--text); }
.contact-location .icon { width: 22px; height: 22px; color: var(--blue); }
.contact-location strong { color: var(--ink); font-weight: 500; }
.contact-pending { display: flex; gap: 12px; margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: #FFF6E0; color: #6B4A00; font-size: 14.5px; }
.contact-pending .icon { width: 20px; height: 20px; }
.contact-pending strong, .contact-pending small { display: block; }
.contact-brief { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-brief h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.contact-brief .ticks { margin-top: 18px; }
.brief-note { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* The contact form: a card of plain fields. site.js checks it and sends it in
   the background; without the script the browser posts it, and the server
   sends it back to #sent. Fields are 16px so phones do not zoom in on them. */
.enquiry-form { position: relative; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 40px 80px -56px rgba(2, 23, 60, .35); }
.enquiry-form h2 { margin-top: 14px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.035em; }
.form-fields { display: grid; gap: 16px; margin-top: 26px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.field em { color: var(--faint); font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--font); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 85, 254, .14); }
.field.is-wrong input, .field.is-wrong select, .field.is-wrong textarea { border-color: #D93025; box-shadow: 0 0 0 4px rgba(217, 48, 37, .12); }
.field-hint { margin-top: -6px; color: var(--muted); font-size: 14px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
.form-status { color: var(--muted); font-size: 14.5px; }
.form-status.is-bad { color: #B3261E; }
/* The trap field: off-screen for people, hidden from screen readers. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* The thank-you note, shown by the script after a send, or by the address ending in #sent. */
.form-sent { display: none; align-items: flex-start; gap: 14px; margin-top: 26px; padding: 22px; border-radius: 18px; background: #E6F7EE; color: #11703E; }
.form-sent .icon { width: 24px; height: 24px; margin-top: 1px; }
.form-sent b { display: block; color: #0B5C32; font-weight: 600; }
.form-sent p { margin-top: 4px; }
.form-sent:target, .enquiry-form.is-sent .form-sent { display: flex; }
.enquiry-form.is-sent .form-fields, .enquiry-form:has(.form-sent:target) .form-fields { display: none; }

/* ------------------------------------------------------------------ footer */

.site-footer { padding-top: 80px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr .8fr 1.2fr; gap: 40px; }
.footer-brand img { width: 150px; }
.footer-brand p { max-width: 24em; margin-top: 18px; color: var(--muted); font-size: 15px; }
.site-footer h2 { margin-bottom: 18px; color: var(--faint); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 12px; }
.site-footer a { color: var(--text); font-size: 15px; }
.site-footer a:hover { color: var(--blue); text-decoration: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 15px; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding: 26px 0 32px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* ------------------------------------------------------------------ appearing on scroll */

/* site.js adds .reveal-ready only when it runs, so without it nothing is
   hidden. Sections move with `translate`, which leaves `transform` free for
   hover lifts and tilts; the list keeps their transitions too. Delays apply
   to the easing in only. */
.reveal-ready [data-reveal] {
  opacity: 0; translate: 0 26px;
  transition: opacity 1s var(--ease), translate 1s var(--ease), transform .6s var(--ease), box-shadow .4s, border-color .4s;
}
.reveal-ready [data-reveal].is-in { opacity: 1; translate: none; }
.reveal-ready .d1 { transition-delay: .08s, .08s, 0s, 0s, 0s; }
.reveal-ready .d2 { transition-delay: .16s, .16s, 0s, 0s, 0s; }
.reveal-ready .d3 { transition-delay: .24s, .24s, 0s, 0s, 0s; }

/* ------------------------------------------------------------------ under a mouse */

/* A soft light follows the pointer across a card and lights its edge.
   site.js adds .spot, and keeps --mx and --my at the pointer, for a mouse only. */
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; }
.spot::after { z-index: -1; background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 85, 254, .07), rgba(0, 85, 254, 0) 60%); }
.spot::before {
  z-index: 1; padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 85, 254, .6), rgba(0, 85, 254, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
/* The illustrations tilt toward the pointer (--rx and --ry, from site.js). */
.tilt { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; translate: none; }
  .media-card img { transform: none; translate: none; }
}

/* ------------------------------------------------------------------ smaller screens */

/* Below this width the pill reaches 12 px from the window's sides, so the
   row draws in to keep the logo and button clear of its rounded ends. */
@media (max-width: 1279px) {
  .is-scrolled:not(.nav-open) .header-row { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 1120px) {
  .header-row { gap: 24px; }
  .nav-links > li > a { --pad: 11px; }
  /* Too narrow for the dark card as well: the three columns take the width. */
  .mega-feature { display: none; }
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .mega-work { display: none; }
  .mega-grid-work { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-row { gap: 56px; }
  .service-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-row li:nth-child(4) { border-left: 0; }
  .service-row li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .service-row li a { border-radius: 0 !important; }
}

@media (max-width: 960px) {
  :root { --header: 64px; }
  .site-header { padding-top: 8px; }
  .is-scrolled .header-bar { top: 8px; bottom: 0; }
  .brand img { width: 136px; }
  .nav-toggle { display: grid; }
  .mega, .nav-veil { display: none; }
  /* The menu is a white sheet over the whole screen, with large links;
     Services and Projects open their lists in place. The bar widens back to
     a full white strip over it. The sheet lies under the bar (z-index -2
     against the bar's -1): on a short phone the opened menu scrolls, and its
     links must pass under the white bar, not show through behind the logo. */
  .nav-open .header-bar {
    top: 0; bottom: 0; left: 0; right: 0; border-radius: 0; border-color: transparent;
    background-color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav {
    position: fixed; inset: 0; z-index: -2; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--header) + 12px) 24px 32px; overflow-y: auto; overscroll-behavior: contain; background: #fff;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease-out, transform .25s ease-out, visibility 0s linear .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links { position: static; flex-direction: column; align-items: stretch; gap: 0; transform: none; }
  .nav-links > li > a { padding: 12px 0; color: var(--ink); font-size: 30px; font-weight: 450; letter-spacing: -.03em; }
  /* The page you are on gets a blue dot after its name. */
  .nav-links > li > a::after { display: none; }
  .nav-links > li > a[aria-current="page"]::after {
    display: inline-block; position: static; width: 8px; height: 8px; margin: 0 0 6px 8px; border-radius: 50%;
    background: var(--blue); transform: none; vertical-align: middle;
  }
  .has-menu { flex-wrap: wrap; }
  .has-menu > a { flex: 1; padding-right: 0; }
  .menu-btn { width: 44px; height: 44px; color: var(--ink); }
  .menu-btn .icon { width: 22px; height: 22px; }
  .sublist {
    display: grid; flex-basis: 100%; gap: 2px; max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s var(--ease), visibility 0s linear .35s;
  }
  .has-menu.sub-open .sublist { max-height: 460px; visibility: visible; transition-delay: 0s; }
  .sublist li:last-child { padding-bottom: 10px; }
  .sublist a { display: flex; align-items: center; gap: 12px; padding: 9px 2px; color: var(--text); font-size: 17px; }
  .sublist .icon { width: 20px; height: 20px; color: var(--blue); }
  .nav-cta { margin-top: 28px; min-height: 52px; }
  .nav-place { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
  .nav-place .icon { width: 17px; height: 17px; color: var(--blue); }

  .section { padding: 104px 0; }
  .hero { padding: calc(var(--header) + 72px) 0 80px; }
  .media-card { aspect-ratio: 4 / 3; border-radius: 28px; }
  .media-caption { left: 24px; right: 24px; bottom: 22px; flex-direction: column; align-items: flex-start; }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 64px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo-head { margin-top: 104px; }
  .work-row, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .work-row.flip { grid-template-columns: minmax(0, 1fr); }
  .work-row.flip .work-copy { order: 0; }
  .work-row + .work-row { margin-top: 104px; }
  .svc-grid, .upkeep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .service .ticks { grid-template-columns: minmax(0, 1fr); }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .site-header { --bar-in: 10px; }
  .is-scrolled:not(.nav-open) .header-row { padding-left: 30px; padding-right: 30px; }
  .nav { padding-left: 20px; padding-right: 20px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }
  /* Room above and below the words for the surge, which a phone has no
     space for beside them. */
  .hero { padding: calc(var(--header) + 100px) 0 100px; }
  .hero::after { height: 90px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .origin { font-size: 15px; }
  .btn-lg { width: 100%; }
  .service-row { grid-template-columns: minmax(0, 1fr); }
  .service-row li + li { border-left: 0; border-top: 1px solid var(--line); }
  .svc-grid, .upkeep, .values, .contact-cards, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 28px; border-top: 0; border-left: 1px solid var(--line); }
  .steps li { padding-top: 0; }
  .steps li::before { top: 8px; left: -33px; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 30px 24px; }
  .mock { padding: 22px 16px; border-radius: 22px; }
  .board-row { grid-template-columns: .5fr 1.5fr .8fr 1.2fr; gap: 6px; padding: 10px 6px; font-size: 12.5px; }
  .ward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { border-radius: 28px; padding: 64px 22px; }
  .wave-band { padding: 48px 0; }
  .wave-row { gap: 8px; }
  .wave-row li { animation-name: wave-sm; }
  .wave-row span { width: 64px; height: 64px; }
  .wave-row .icon { width: 24px; height: 24px; }
  .duo { margin-top: 40px; }
  .duo-panel { min-height: 480px; padding: 28px 24px; border-radius: 26px; }
  .enquiry-form { padding: 28px 20px; border-radius: 22px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .cta-wrap { padding-bottom: 88px; }
}
