:root {
  --navy: #0f172a;
  --ink: #111827;
  --steel: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --mist: #f8fafc;
  --white: #fff;
  --green: #10b981;
  --green-dark: #059669;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--steel);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

img,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  color: var(--navy);
  font-weight: 900;
}

.brand img {
  width: 82px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  width: 100%;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a:not(.button):hover {
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.section-shell {
  position: relative;
  padding: 104px clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.ambient-stage,
.ambient-stage::after,
.video-loop,
.blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-stage {
  z-index: 0;
}

.ambient-stage::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72) 56%, rgba(15, 23, 42, 0.62)),
    radial-gradient(circle at 75% 34%, rgba(16, 185, 129, 0.2), transparent 30%);
  backdrop-filter: blur(1px);
}

#gridCanvas {
  width: 100%;
  height: 100%;
}

.video-loop {
  opacity: 0.16;
  mix-blend-mode: screen;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(16, 185, 129, 0.24) 44%, transparent 48%),
    repeating-linear-gradient(105deg, rgba(148, 163, 184, 0.18) 0 1px, transparent 1px 42px);
  animation: drift 18s linear infinite;
}

.loop-b {
  opacity: 0.1;
  transform: rotate(180deg);
  animation-duration: 26s;
}

@keyframes drift {
  to {
    transform: translate3d(8%, -6%, 0);
  }
}

.blueprint {
  z-index: 1;
  width: 120px;
  height: 100%;
  opacity: 0.42;
}

.blueprint-right {
  right: 0;
  left: auto;
  width: 140px;
}

.draw-path {
  fill: none;
  stroke: rgba(16, 185, 129, 0.75);
  stroke-width: 2;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine linear both;
  animation-timeline: scroll(root);
}

.draw-path.slow {
  stroke: rgba(226, 232, 240, 0.48);
  stroke-width: 1.3;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-content,
.hero-metrics {
  position: relative;
  z-index: 2;
  max-width: 1180px;
}

.hero-content {
  padding-top: 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

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

h1 {
  max-width: 950px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(2.75rem, 6.2vw, 5.75rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero .eyebrow::before {
  display: none;
}

h2 {
  max-width: 900px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 1;
  font-weight: 950;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.24;
}

.hero-content p,
.section-copy p,
.portfolio-head p,
.enquiry-copy p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.section-copy p,
.portfolio-head p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.capability-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.capability-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(187, 247, 208, 0.58);
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-size: 0.9rem;
  font-weight: 950;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--green);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.26);
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  transition: all 0.25s ease-in-out;
}

.button:hover {
  transform: translateY(-3px);
  background: var(--green-dark);
  box-shadow: 0 24px 48px rgba(16, 185, 129, 0.32);
}

.button:active,
.tactile:active {
  transform: scale(0.975);
}

.button-small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.84rem;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.button-dark {
  background: var(--navy);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}

.light {
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, 100%);
  margin-top: 70px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.hero-metrics article {
  padding: 24px;
}

.hero-metrics strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 800;
}

.identity,
.services,
.portfolio,
.downloads {
  background: var(--mist);
}

.section-copy,
.portfolio-head,
.enquiry-copy {
  max-width: 1180px;
  margin: 0 auto 42px;
}

.identity-grid,
.services-grid,
.execution-grid,
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.identity-grid article,
.services-grid article,
.execution-grid article,
.downloads-grid article,
.portfolio-shell,
.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.identity-grid article,
.services-grid article,
.execution-grid article,
.downloads-grid article {
  padding: 28px;
}

.execution-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-grid p,
.services-grid p,
.execution-grid p,
.downloads-grid p,
.portfolio-shell span,
.site-footer p {
  color: var(--muted);
}

.identity-grid article,
.services-grid article,
.downloads-grid article {
  min-height: 210px;
  transition: all 0.25s ease-in-out;
}

.identity-grid article:hover,
.services-grid article:hover,
.downloads-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.1);
}

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

.services-grid article h3::before,
.identity-grid article h3::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--green);
}

.execution {
  background: var(--white);
}

.founder {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 22%, rgba(16, 185, 129, 0.18), transparent 30%),
    var(--navy);
}

.founder-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.2);
}

.founder h2 {
  color: var(--white);
}

.founder p {
  max-width: 820px;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.founder-mark {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(16, 185, 129, 0.7);
  border-radius: 50%;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.36), rgba(15, 23, 42, 0.8));
  font-size: 2.7rem;
  font-weight: 950;
}

.founder-credentials {
  display: grid;
  gap: 6px;
  max-width: 640px;
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.08);
}

.founder-credentials strong {
  color: var(--white);
  font-size: 1.08rem;
}

.founder-credentials span {
  color: #cbd5e1;
  font-weight: 800;
}

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

.downloads-grid article {
  min-height: 250px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent 48%),
    var(--white);
}

.downloads-grid article > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--green-dark);
  background: #ecfdf5;
  font-size: 1.5rem;
  font-weight: 950;
}

.dark-ghost {
  width: fit-content;
  margin-top: 14px;
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}

.dark-ghost:hover {
  border-color: rgba(16, 185, 129, 0.36);
  color: var(--white);
  background: var(--green);
}

.portfolio-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1180px;
  min-height: 190px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0)),
    var(--white);
}

.portfolio-shell strong,
.portfolio-shell span {
  display: block;
}

.portfolio-shell strong {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.enquiry {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 84px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent 40%),
    var(--navy);
}

.enquiry h2,
.enquiry h3,
.enquiry label {
  color: var(--white);
}

.contact-stack {
  display: grid;
  gap: 14px;
  align-items: start;
  margin-top: 30px;
}

.contact-stack span {
  color: #cbd5e1;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(15, 23, 42, 0.55);
  outline: none;
  transition: all 0.25s ease-in-out;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.lead-form option {
  color: var(--navy);
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
  padding: 42px clamp(20px, 5vw, 72px);
  color: #cbd5e1;
  background: #020617;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--white);
  font-size: 1.1rem;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1040px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .nav-toggle {
    display: block;
  }

  .identity-grid,
  .services-grid,
  .execution-grid,
  .downloads-grid,
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .enquiry {
    grid-template-columns: 1fr;
  }

  .founder-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section-shell {
    padding: 76px 20px;
  }

  .brand {
    min-width: auto;
  }

  .brand span {
    display: none;
  }

  h1 {
    font-size: 3.18rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .portfolio-shell,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-metrics,
  .identity-grid,
  .services-grid,
  .execution-grid,
  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .blueprint {
    opacity: 0.22;
  }
}
