:root {
  --void: #04060A;
  --panel: rgba(12, 17, 27, .72);
  --text: #F1F4F9;
  --muted: #8891A3;
  --faint: #515A6B;
  --blue: #4D9BFF;
  --cobalt: #1B4F82;
  --line: rgba(255, 255, 255, .09);
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(1.25rem, 3.4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--blue); color: var(--void); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 3px; }

.mono { font: 400 .78rem/1.5 var(--mono); letter-spacing: .02em; color: var(--muted); margin: 0; }

.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 30; background: var(--text); color: var(--void); padding: .5rem .9rem; border-radius: 6px; }
.skip:focus { top: 1rem; }

main, .contact { position: relative; z-index: 1; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.1rem var(--gutter);
}
/* Page content fades out as it scrolls under the header, so it never collides with the logo or menu. */
.top::before {
  content: ""; position: absolute; inset: 0 0 -1.5rem 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 6, 10, .94) 55%, rgba(4, 6, 10, 0));
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; justify-self: start; }
.brand img { width: 2.5rem; filter: brightness(1.7) saturate(1.15); }
.top nav {
  display: flex; gap: .25rem; padding: .3rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 14, 22, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.top nav a { padding: .45rem 1rem; border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--muted); transition: color .2s, background-color .2s; }
.top nav a:hover { color: var(--text); background: rgba(255, 255, 255, .07); }

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--gutter) clamp(2rem, 5vh, 3.5rem);
}
.hero-fallback { display: none; }
.no-webgl .hero-fallback { display: block; position: absolute; right: 9vw; top: 22vh; width: min(40vw, 460px); filter: brightness(1.5) saturate(1.2); }
.hero-tag { margin-bottom: 1.4rem; }
.hero h1 {
  margin: 0; font-weight: 500;
  font-size: clamp(2.7rem, 8.3vw, 9.2rem); line-height: .9; letter-spacing: -.058em;
}
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: block; transform: translateY(112%); transition: transform 1.25s cubic-bezier(.16, 1, .3, 1); }
.line:nth-child(2) > span { transition-delay: .12s; }
.is-ready .line > span { transform: none; }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-top: clamp(1.75rem, 4vh, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  opacity: 0; transition: opacity 1s .7s;
}
.is-ready .hero-foot { opacity: 1; }
.lede { margin: 0; max-width: 31rem; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.15rem); }

.btn {
  display: inline-flex; align-items: center; height: 3.1rem; padding: 0 1.5rem; flex: none;
  border-radius: 999px; background: var(--text); color: var(--void);
  text-decoration: none; font-weight: 500; font-size: .97rem; letter-spacing: -.01em;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: #fff; transform: translateY(-1px); }

/* Statement */
.statement { padding: clamp(7rem, 22vh, 14rem) var(--gutter); }
.statement p {
  margin: 0; max-width: 20ch; font-size: clamp(2rem, 5.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 500;
}
.statement .w { opacity: .14; transition: opacity .35s; }
.statement .w.on { opacity: 1; }

/* Section heads */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head h2 { margin: 0; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }

/* Products */
.products, .company { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.product-intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.status { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); }
.dot { width: .45rem; height: .45rem; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 12px #3DDC97; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 3px #3DDC97; opacity: .6; } }
.product h3 { margin: 1rem 0 0; font-size: clamp(2.6rem, 7vw, 7rem); line-height: .92; letter-spacing: -.058em; font-weight: 500; }
.product-line { margin: 1.5rem 0 0; color: var(--muted); max-width: 32rem; font-size: 1.12rem; }
.specs { margin: 0 0 1.75rem; }
.specs > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--faint); }
.specs dd { margin: 0; color: var(--text); }

/* Showcase stage */
.stage { margin-top: clamp(3.5rem, 8vw, 7rem); }
.tabs { display: flex; gap: clamp(1rem, 3vw, 2.5rem); margin-bottom: 1.75rem; }
.tab {
  position: relative; flex: 0 1 15rem; padding: 0 0 .9rem; border: 0; background: none; cursor: pointer;
  font: 500 1.02rem/1.2 var(--sans); letter-spacing: -.01em; text-align: left; color: var(--faint); transition: color .3s;
}
.tab:hover, .tab.on { color: var(--text); }
.bar { position: absolute; inset: auto 0 0 0; height: 2px; background: var(--line); overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.tab.on .bar::after { animation: fill 6s linear forwards paused; }
.stage.playing .tab.on .bar::after { animation-play-state: running; }
@keyframes fill { to { transform: scaleX(1); } }

.window-wrap { position: relative; perspective: 2200px; padding-bottom: 6%; }
.window {
  border-radius: 14px; overflow: hidden; background: #0A0D13;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 0 0 1px rgba(77, 155, 255, .12), 0 50px 140px -30px rgba(27, 79, 130, .9), 0 0 160px rgba(77, 155, 255, .13);
  transform: rotateX(calc(var(--tilt, 0) * 18deg + var(--px, 0deg))) rotateY(var(--py, 0deg)) scale(calc(1 - var(--tilt, 0) * .09));
  transform-origin: 50% 100%; will-change: transform;
}
.window-bar { display: flex; align-items: center; gap: .42rem; height: 2.5rem; padding: 0 1rem; background: #0E121A; border-bottom: 1px solid var(--line); }
.window-bar i { width: .62rem; height: .62rem; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.window-bar span { margin: 0 auto; padding-right: 3rem; color: var(--faint); }
.screens { position: relative; aspect-ratio: 2000 / 1250; overflow: hidden; }
.screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.screen.was { opacity: 1; z-index: 1; }
.screen.on { opacity: 1; z-index: 2; animation: wipe 1.05s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes wipe {
  from { clip-path: inset(0 0 100% 0); transform: scale(1.07) translateY(2.5%); filter: brightness(1.8); }
  to { clip-path: inset(0 0 0 0); transform: none; filter: none; }
}

.phone { position: absolute; z-index: 3; margin: 0; width: 15%; bottom: 0; transform: translateY(calc(var(--tilt, 0) * var(--drift, 90px))); }
.phone img {
  width: 100%; border-radius: 11% / 5.2%; border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .85), 0 0 70px rgba(77, 155, 255, .22);
  animation: bob 7s ease-in-out infinite;
}
.phone figcaption { margin-top: .8rem; text-align: center; }
.phone-owner { left: -2%; --drift: 70px; }
.phone-trainer { right: 14.5%; width: 13.5%; bottom: -1.5%; --drift: 150px; }
.phone-trainer img { animation-duration: 8.5s; animation-delay: -3s; }
.phone-member { right: -2%; --drift: 100px; }
.phone-member img { animation-duration: 6.2s; animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.caps { list-style: none; margin: clamp(3.5rem, 8vw, 6.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.caps li { padding: 1.75rem 1.75rem 2rem 0; border-bottom: 1px solid var(--line); opacity: 0; translate: 0 26px; transition: opacity .8s, translate 1s cubic-bezier(.16, 1, .3, 1); }
.caps li:not(:nth-child(3n+1)) { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.caps li:nth-child(2), .caps li:nth-child(5) { transition-delay: .1s; }
.caps li:nth-child(3), .caps li:nth-child(6) { transition-delay: .2s; }
.caps.in li { opacity: 1; translate: 0 0; }
.caps h4 { margin: 0; font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.caps p { margin: .6rem 0 0; color: var(--muted); font-size: .98rem; }

.stage .window, .stage .phone { opacity: 0; translate: 0 70px; transition: opacity .9s, translate 1.2s cubic-bezier(.16, 1, .3, 1); }
.stage .phone-owner { transition-delay: .25s; }
.stage .phone-member { transition-delay: .4s; }
.stage .phone-trainer { transition-delay: .55s; }
.stage.in .window, .stage.in .phone { opacity: 1; translate: 0 0; }

.next {
  display: grid; grid-template-columns: 9rem 1fr auto; align-items: center; gap: 1.5rem;
  margin-top: clamp(5rem, 11vw, 9rem); padding: 1.6rem 0; border-block: 1px solid var(--line);
}
.next-name { margin: 0; font: 500 clamp(1.3rem, 3vw, 2.4rem)/1 var(--mono); color: var(--faint); letter-spacing: .04em; white-space: nowrap; overflow: hidden; }
.next-note { margin: 0; color: var(--muted); font-size: .95rem; }

/* Company */
.company-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.big { margin: 0; font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.body { margin: 1.75rem 0 0; color: var(--muted); max-width: 32rem; }
.specs-table { margin: 0; }
.specs-table > div { grid-template-columns: 9.5rem 1fr; }

/* Custom work */
.services { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.services .btn { margin-top: 2.25rem; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list a {
  position: relative; display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 1.5rem; align-items: baseline;
  padding: 1.7rem 0; border-top: 1px solid var(--line); text-decoration: none;
}
.service-list li:last-child a { border-bottom: 1px solid var(--line); }
.service-list a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}
.service-list a:hover::after, .service-list a:focus-visible::after { transform: scaleX(1); }
.service-name { font-size: clamp(1.4rem, 2.5vw, 2.1rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; transition: transform .4s cubic-bezier(.16, 1, .3, 1), color .25s; }
.service-list a:hover .service-name { transform: translateX(.7rem); color: var(--blue); }
.service-note { color: var(--muted); }

/* Contact */
.contact { padding: clamp(6rem, 14vw, 11rem) var(--gutter) 1.5rem; }
.contact-main { max-width: min(44rem, 54%); }
.contact h2 { margin: 0; font-size: clamp(3.4rem, 9.5vw, 9.5rem); line-height: .88; letter-spacing: -.06em; font-weight: 500; }
.contact-lede { margin: 1.75rem 0 2.5rem; max-width: 30rem; color: var(--muted); font-size: 1.12rem; }

.enquiry { display: grid; gap: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field > span, .chips legend { font-size: .86rem; color: var(--muted); }
.field em { font-style: normal; color: var(--faint); }
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem; font: inherit; color: var(--text); resize: vertical;
  background: rgba(12, 17, 27, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(77, 155, 255, .2); }
.field.invalid input, .field.invalid textarea { border-color: #FF7A7A; }
.tel { display: grid; grid-template-columns: auto 1fr; gap: .5rem; }
/* The box shows only the dialling code; the full country list is the native picker laid over it. */
.dial {
  position: relative; display: flex; align-items: center; gap: .6rem; min-width: 5.6rem; padding: .9rem 1rem;
  background: rgba(12, 17, 27, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.dial::after {
  content: ""; width: .42rem; height: .42rem; margin: -.2rem 0 0 auto;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
}
.dial select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: inherit; color-scheme: dark; }
.dial:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(77, 155, 255, .2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; }
.chips legend { padding: 0; margin-bottom: .65rem; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips label span {
  display: inline-flex; align-items: center; height: 2.45rem; padding: 0 1.05rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(12, 17, 27, .6); font-size: .93rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chips label:hover span { border-color: rgba(255, 255, 255, .4); }
.chips input:checked + span { background: var(--text); border-color: var(--text); color: var(--void); }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-foot { display: flex; align-items: center; gap: 1.25rem; margin-top: .4rem; }
.enquiry-foot .btn { border: 0; cursor: pointer; font-family: inherit; }
.enquiry-foot .btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.enquiry-status { margin: 0; color: var(--muted); font-size: .96rem; }
.enquiry-status.ok { color: #3DDC97; }
.enquiry-status.bad { color: #FF9C9C; }

.contact-direct { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.contact-email {
  display: inline-block; margin-top: .8rem; font-size: clamp(1.25rem, 2.4vw, 1.9rem); letter-spacing: -.03em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: rgba(255, 255, 255, .3);
  transition: text-decoration-color .2s, color .2s;
}
.contact-email:hover { color: var(--blue); text-decoration-color: var(--blue); }
.contact-phones { display: flex; flex-wrap: wrap; gap: 0 2rem; margin-top: .35rem; font-size: .9rem; }
.contact-phones a { padding: .65rem 0; text-decoration: none; transition: color .2s; }
.contact-phones a:hover { color: var(--text); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(4rem, 9vw, 7rem); padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--faint); }
.legal a { color: var(--muted); }

/* Privacy page */
.doc { position: relative; z-index: 1; max-width: 44rem; padding: 8rem var(--gutter) 5rem; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -.05em; font-weight: 500; margin: 0 0 .75rem; }
.doc h2 { font-size: 1.1rem; font-weight: 500; margin: 2.5rem 0 .5rem; letter-spacing: -.01em; }
.doc p { color: var(--muted); }
.doc a { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .line > span { transform: none; transition: none; }
  .hero-foot { opacity: 1; transition: none; }
  .statement .w { transition: none; }
  .window, .phone { transform: none; }
  .phone img, .dot { animation: none; }
  .screen.on { animation: none; }
  .tab.on .bar::after { animation: none; transform: scaleX(1); }
  .stage .window, .stage .phone, .caps li { opacity: 1; translate: 0 0; transition: none; }
}

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .top nav a:not(:last-child) { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .product-intro, .company-grid, .services-grid, .field-row { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .caps li, .caps li:not(:nth-child(3n+1)) { padding: 1.4rem 0; border-left: 0; }
  .tabs { gap: .9rem; }
  .tab { flex: 1 1 auto; font-size: .85rem; white-space: nowrap; }
  .window-wrap { padding-bottom: 30%; }
  .window-bar { height: 1.6rem; }
  .window-bar span { display: none; }
  .phone { width: 27%; }
  .phone-owner { left: 3%; }
  .phone-member { right: 3%; }
  .phone-trainer { left: 36.5%; right: auto; width: 27%; bottom: -3%; }
  .service-list a { grid-template-columns: 1fr; gap: .4rem; }
  .contact-main { max-width: none; }
  .next { grid-template-columns: 1fr; gap: .6rem; }
  .specs > div, .specs-table > div { grid-template-columns: 7rem 1fr; }
}
