:root {
  --bg: #071014;
  --surface: #0f1c22;
  --surface-muted: #13262d;
  --ink: #eef7f8;
  --muted: #9eb3b9;
  --line: rgba(155, 231, 238, 0.16);
  --steel: #6f8894;
  --steel-dark: #0b171d;
  --safety: #f0a83a;
  --blueprint: #29c7d8;
  --success: #71e0a4;
  --violet: #8b8cf6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(41, 199, 216, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(41, 199, 216, 0.07) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(41, 199, 216, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(240, 168, 58, 0.13), transparent 32%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
video {
  -webkit-user-drag: none;
  user-select: none;
}

.topbar,
main,
.footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 218, 220, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(246, 248, 248, 0.94), rgba(206, 216, 220, 0.88)),
    rgba(235, 239, 240, 0.92);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.nav,
.hero-actions,
.contact-lines {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  display: block;
  width: min(280px, 52vw);
  max-height: 70px;
  object-fit: contain;
}

.nav {
  gap: 24px;
  color: #405059;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav a:hover,
.nav a:focus-visible,
.footer a:hover,
.footer a:focus-visible {
  color: #0b7788;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(520px, 1.14fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 100px);
  padding: 36px 0 44px;
}

.top-logo-rail {
  display: block;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 21, 27, 0.72);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.rail-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.rail-logos img {
  width: auto;
  height: 45px;
  max-width: 150px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 8px 12px;
  border: 1px solid rgba(155, 231, 238, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4.2vw, 58px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(15, 28, 34, 0.94), rgba(9, 18, 23, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blueprint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 12.5ch;
  margin-bottom: 22px;
  font-size: clamp(3rem, 4.25vw, 4.85rem);
  line-height: 0.98;
}

h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.service-card h3 small {
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 800;
  white-space: nowrap;
}

.hero-text,
.service-card p,
.software-card p,
.timeline-item p,
.metric span,
.contact-copy p,
.quality-panel li,
.footer {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  margin-bottom: 30px;
  font-size: 1rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--safety);
  color: #15100a;
  box-shadow: 0 16px 28px rgba(214, 141, 45, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--ink);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.signal-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(41, 199, 216, 0.08);
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid strong {
  color: var(--blueprint);
  font-size: 1.1rem;
}

.signal-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.digital-console {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(8, 18, 23, 0.94);
  box-shadow: var(--shadow);
}

.console-top,
.console-stats {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-color: var(--line);
}

.console-top {
  grid-template-columns: auto 1fr auto;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.console-top strong {
  color: var(--ink);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 20px rgba(113, 224, 164, 0.8);
}

.model-stage {
  position: relative;
  min-height: 470px;
  overflow: hidden;
}

.model-stage img,
.model-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.08) brightness(0.58);
}

.model-stage video {
  background: var(--steel-dark);
}

.model-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(41, 199, 216, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(41, 199, 216, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, transparent, rgba(7, 16, 20, 0.86));
  background-size: 42px 42px, 42px 42px, auto;
}

.scan-line {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.scan-line-horizontal {
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blueprint), rgba(240, 168, 58, 0.62), transparent);
  box-shadow: 0 0 24px rgba(41, 199, 216, 0.9);
  animation: scan 5s linear infinite;
}

.scan-line-h1 {
  top: 10%;
}

.scan-line-h2 {
  top: 34%;
  opacity: 0.72;
  animation-duration: 6.8s;
  animation-delay: -2.4s;
}

.model-card {
  position: absolute;
  z-index: 3;
  width: 174px;
  padding: 12px;
  border: 1px solid rgba(41, 199, 216, 0.45);
  border-radius: 6px;
  background: rgba(7, 16, 20, 0.78);
  backdrop-filter: blur(10px);
}

.model-card span,
.console-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.model-card strong,
.console-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.model-card,
.console-stats article {
  transition: opacity 260ms ease, transform 260ms ease, border-color 260ms ease;
}

.model-card.is-changing,
.console-stats article.is-changing {
  opacity: 0.18;
  transform: translateY(6px);
  border-color: rgba(240, 168, 58, 0.65);
}

.model-card-a {
  left: 7%;
  top: 18%;
}

.model-card-b {
  right: 7%;
  bottom: 18%;
}

.model-card-c {
  left: 8%;
  bottom: 11%;
}

.model-card-d {
  right: 10%;
  top: 24%;
}

.node {
  position: absolute;
  z-index: 4;
  width: 15px;
  height: 15px;
  border: 3px solid var(--blueprint);
  border-radius: 50%;
  background: var(--steel-dark);
  box-shadow: 0 0 24px rgba(41, 199, 216, 0.8);
  animation: nodeBlink 2.6s ease-in-out infinite;
}

.node-a {
  left: 29%;
  top: 27%;
}

.node-b {
  right: 18%;
  top: 47%;
  animation-delay: -0.85s;
}

.node-c {
  left: 54%;
  bottom: 16%;
  border-color: var(--safety);
  box-shadow: 0 0 24px rgba(240, 168, 58, 0.7);
  animation-delay: -1.7s;
}

.console-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(15, 28, 34, 0.82);
}

.section {
  padding: 58px 0;
}

.intro {
  padding-bottom: 34px;
}

#services {
  padding-top: 34px;
}

.deliverables {
  padding-top: 34px;
  padding-bottom: 38px;
}

.process {
  padding-top: 30px;
  padding-bottom: 34px;
}

.quality {
  padding-top: 32px;
  padding-bottom: 34px;
}

.career {
  padding-top: 34px;
  padding-bottom: 36px;
}

.logo-section {
  padding-top: 36px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.intro-grid,
.service-grid,
.software-grid,
.timeline {
  display: grid;
  gap: 16px;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-expanded {
  grid-column: 1 / -1;
  margin-top: -4px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(41, 199, 216, 0.08), transparent 58%),
    rgba(15, 28, 34, 0.88);
  box-shadow: 0 16px 48px rgba(21, 26, 29, 0.08);
}

.about-expanded p {
  max-width: 118ch;
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.about-expanded p:last-child {
  margin-bottom: 0;
}

.metric,
.service-card,
.software-card,
.timeline-item,
.quality-panel,
.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(15, 28, 34, 0.9);
  box-shadow: 0 16px 48px rgba(21, 26, 29, 0.08);
}

.metric {
  padding: 22px;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.45rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}

.services-heading {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  max-width: 1120px;
  min-height: 118px;
  align-content: center;
  margin-bottom: 30px;
}

.services-heading h2 {
  max-width: 1280px;
  font-size: clamp(2.15rem, 3.75vw, 4.05rem);
  line-height: 1;
  white-space: nowrap;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.software-card,
.timeline-item {
  padding: 24px;
}

.service-card {
  overflow: hidden;
}

.service-thumb {
  height: 220px;
  margin: -24px -24px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--steel-dark);
  overflow: hidden;
}

.service-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.service-card:hover .service-thumb img,
.service-card:focus-within .service-thumb img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.service-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid rgba(41, 199, 216, 0.42);
  border-radius: 6px;
  background: rgba(41, 199, 216, 0.08);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.service-toggle:hover,
.service-toggle:focus-visible,
.service-toggle.is-active {
  background: rgba(41, 199, 216, 0.18);
  border-color: var(--blueprint);
  transform: translateY(-1px);
}

.service-detail-wrap {
  margin-top: 24px;
}

.service-detail {
  display: none;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(41, 199, 216, 0.08), transparent 42%),
    rgba(10, 21, 27, 0.92);
  box-shadow: var(--shadow);
}

.service-detail.is-active {
  display: block;
}

.service-detail-heading {
  display: flex;
  justify-content: flex-start;
  align-items: start;
  margin-bottom: 18px;
}

.service-detail-heading h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.service-detail p {
  max-width: 88ch;
  color: var(--muted);
  line-height: 1.75;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.detail-columns div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 28, 34, 0.88);
}

.detail-columns h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
}

.detail-columns ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.service-card span,
.timeline-item span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--success);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.software {
  padding-block: 78px;
  border-block: 1px solid var(--line);
}

.portfolio {
  border-top: 1px solid var(--line);
}

.portfolio-heading {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  max-width: 960px;
  min-height: 170px;
  align-content: center;
  margin-bottom: 34px;
}

.portfolio-heading h2 {
  max-width: 1120px;
  font-size: clamp(2.15rem, 3.8vw, 4.05rem);
  line-height: 1;
  white-space: nowrap;
}

.process-heading {
  display: block;
  margin-bottom: 18px;
}

.portfolio-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.portfolio-tab {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(240, 168, 58, 0.14), transparent 58%),
    rgba(15, 28, 34, 0.9);
  color: var(--ink);
  font-size: clamp(1.18rem, 1.35vw, 1.42rem);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.portfolio-tab span {
  color: var(--blueprint);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.portfolio-tab small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -2px;
  letter-spacing: 0;
}

.portfolio-tab:hover,
.portfolio-tab:focus-visible,
.portfolio-tab.is-active {
  border-color: rgba(41, 199, 216, 0.72);
  background:
    linear-gradient(135deg, rgba(41, 199, 216, 0.16), transparent 58%),
    rgba(15, 28, 34, 0.96);
  transform: translateY(-2px);
}

.portfolio-gallery {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 18, 23, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portfolio-panel {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.portfolio-panel.is-active {
  display: grid;
}

.portfolio-panel figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--steel-dark);
  cursor: zoom-in;
}

.portfolio-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
  transition: transform 240ms ease, filter 240ms ease;
}

.portfolio-panel[data-portfolio-panel="united-kingdom"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-panel[data-portfolio-panel="united-kingdom"] figure {
  aspect-ratio: 3 / 4;
}

.portfolio-panel[data-portfolio-panel="europe"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-panel[data-portfolio-panel="europe"] figure {
  aspect-ratio: 16 / 10;
}

.portfolio-panel[data-portfolio-panel="australia-new-zealand"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-panel[data-portfolio-panel="north-america"] figure:nth-child(7) {
  grid-column: 2;
}

.portfolio-panel[data-portfolio-panel="australia-new-zealand"] .portfolio-feature {
  grid-column: auto;
  aspect-ratio: 4 / 3;
}

.portfolio-panel figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(7, 16, 20, 0.88)),
    linear-gradient(90deg, rgba(41, 199, 216, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(41, 199, 216, 0.12) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  pointer-events: none;
}

.portfolio-panel figure:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.08);
}

.portfolio-panel figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  color: var(--ink);
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.portfolio-empty {
  display: none;
  min-height: 260px;
  padding: 24px;
  background: rgba(15, 28, 34, 0.9);
}

.portfolio-empty.is-active {
  display: grid;
  place-items: center;
}

.portfolio-empty div {
  text-align: center;
}

.portfolio-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.35rem;
}

.portfolio-empty p {
  margin: 0;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(3, 8, 11, 0.88);
  backdrop-filter: blur(14px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(94vw, 1380px);
  max-height: 82vh;
  border: 1px solid rgba(155, 231, 238, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.lightbox p {
  margin: 14px 0 0;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(155, 231, 238, 0.35);
  border-radius: 6px;
  background: rgba(15, 28, 34, 0.92);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.software-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.software-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(36, 50, 58, 0.2), rgba(36, 50, 58, 0.92)),
    linear-gradient(135deg, #115366, var(--blueprint));
}

.software-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(36, 50, 58, 0.14), rgba(36, 50, 58, 0.92)),
    linear-gradient(135deg, #b9853a, #324047);
}

.software-card p {
  color: rgba(255, 255, 255, 0.8);
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-item {
  position: relative;
  overflow: hidden;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--safety), var(--blueprint));
}

.deliverables {
  border-block: 1px solid var(--line);
}

.deliverables-heading {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  max-width: 1160px;
  min-height: 180px;
  align-content: center;
}

.deliverables-heading h2 {
  max-width: 1180px;
  font-size: clamp(2rem, 3.25vw, 3.65rem);
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .deliverables-heading h2 {
    white-space: normal;
  }
}

.deliverable-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 18, 23, 0.88);
  box-shadow: var(--shadow);
}

.board-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.board-header span {
  color: var(--blueprint);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.deliverable-grid span {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(41, 199, 216, 0.08), transparent 60%),
    var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.deliverable-grid span:hover,
.deliverable-grid span:focus-visible {
  background:
    linear-gradient(135deg, rgba(240, 168, 58, 0.22), transparent 62%),
    rgba(15, 28, 34, 0.96);
  border: 1px solid rgba(240, 168, 58, 0.28);
  color: var(--safety);
  transform: translateY(-2px);
}

.model-compare {
  padding-top: 42px;
}

.compare-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 18, 23, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.compare-slider {
  --position: 50%;
  position: relative;
  min-height: 520px;
  overflow: hidden;
  user-select: none;
}

.compare-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.compare-image-base {
  filter: none;
}

.compare-overlay {
  position: absolute;
  inset: 0;
  left: var(--position);
  width: calc(100% - var(--position));
  overflow: hidden;
}

.compare-overlay .compare-image {
  width: calc(100% / (1 - var(--position-num, 0.5)));
  filter: saturate(1.08) contrast(1.04);
  transform: translateX(calc(-1 * var(--position)));
}

.compare-label {
  position: absolute;
  top: 24px;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid rgba(155, 231, 238, 0.28);
  border-radius: 4px;
  background: rgba(7, 16, 20, 0.74);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-label-left {
  left: 24px;
}

.compare-label-right {
  right: 24px;
  background: rgba(41, 199, 216, 0.9);
  color: #061116;
}

.compare-divider {
  position: absolute;
  inset-block: 0;
  left: var(--position);
  z-index: 3;
  width: 3px;
  background: var(--blueprint);
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(41, 199, 216, 0.8);
}

.compare-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blueprint);
  transform: translate(-50%, -50%);
}

.compare-divider span::before {
  content: "<>";
  color: #061116;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.quality-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(15, 28, 34, 0.96), rgba(9, 18, 23, 0.92)),
    linear-gradient(90deg, transparent, rgba(14, 111, 135, 0.12));
}

.career .quality-panel {
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
}

.career .quality-panel h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 3.8vw, 4.05rem);
  line-height: 1.03;
}

.career .quality-panel > div:last-child {
  align-self: center;
}

.career-email {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blueprint);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
}

.logo-section {
  border-top: 1px solid var(--line);
}

.logo-heading {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
}

.logo-heading h2 {
  max-width: none;
  width: 100%;
  font-size: clamp(1.9rem, 3.1vw, 3.35rem);
  line-height: 1;
  white-space: nowrap;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.logo-tile {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(41, 199, 216, 0.06), transparent 52%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.logo-tile-wide {
  grid-column: span 2;
}

.logo-tile img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.eurocode-tile {
  flex-direction: column;
  gap: 10px;
}

.eurocode-tile img {
  max-height: 40px;
}

.eurocode-tile span {
  color: #22313a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--success);
  border-bottom: 3px solid var(--success);
  transform: rotate(-45deg);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: start;
}

.contact-copy {
  padding-top: 12px;
  display: grid;
  align-content: start;
}

.contact-copy h2 {
  margin-bottom: 18px;
  max-width: 18ch;
  font-size: clamp(2.35rem, 4.2vw, 4.8rem);
  line-height: 0.98;
}

.contact-lines {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  font-weight: 800;
}

.contact-lines a {
  color: var(--blueprint);
}

.instagram-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 150px;
  padding: 10px 14px;
  border: 1px solid rgba(41, 199, 216, 0.42);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 800;
  background: rgba(15, 28, 34, 0.72);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: var(--blueprint);
  border-color: rgba(41, 199, 216, 0.86);
  transform: translateY(-2px);
}

.instagram-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 3px solid #e1306c;
  border-radius: 7px;
  background: linear-gradient(135deg, #f77737, #e1306c 52%, #833ab4);
}

.instagram-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.instagram-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #111820;
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 1.45em;
  margin: 0;
  color: var(--success);
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

@keyframes scan {
  from {
    transform: translateY(-80px);
  }

  to {
    transform: translateY(420px);
  }
}

@keyframes nodeBlink {
  0%,
  100% {
    opacity: 0.44;
    transform: scale(0.86);
  }

  45% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.footer p {
  margin: 0;
}

@media (min-width: 1041px) and (max-height: 820px) {
  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.75rem, 3.7vw, 4.35rem);
  }

  .hero-copy {
    justify-content: flex-start;
  }

  .digital-console {
    min-height: 600px;
  }

  .model-stage {
    min-height: 390px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero,
  .intro,
  .quality-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-expanded {
    grid-column: 1;
    margin-top: 0;
  }

  .service-grid,
  .detail-columns,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deliverable-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logo-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-tabs,
  .portfolio-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-panel[data-portfolio-panel="united-kingdom"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-panel[data-portfolio-panel="north-america"] figure:nth-child(7) {
    grid-column: 1 / -1;
  }

  .portfolio-panel[data-portfolio-panel="australia-new-zealand"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  main,
  .footer {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .topbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .top-logo-rail {
    overflow-x: auto;
  }

  .rail-logos {
    min-width: 1020px;
  }

  .hero-copy {
    padding: 26px;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3.45rem);
  }

  .intro-grid,
  .service-grid,
  .detail-columns,
  .portfolio-tabs,
  .portfolio-panel,
  .software-grid,
  .timeline,
  .signal-grid,
  .console-stats,
  .deliverable-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-panel[data-portfolio-panel="united-kingdom"] {
    grid-template-columns: 1fr;
  }

  .portfolio-panel[data-portfolio-panel="north-america"] figure:nth-child(7) {
    grid-column: auto;
  }

  .portfolio-panel[data-portfolio-panel="australia-new-zealand"] {
    grid-template-columns: 1fr;
  }

  .digital-console {
    min-height: auto;
  }

  .logo-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-top,
  .board-header {
    align-items: start;
    grid-template-columns: auto 1fr;
    flex-direction: column;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .logo-heading h2 {
    white-space: normal;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
