:root {
  --bg: #080b10;
  --surface: rgba(17, 22, 30, 0.78);
  --surface-strong: #11161e;
  --text: #f2f4f7;
  --muted: #939dab;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff7478;
  --accent-soft: rgba(255, 116, 120, 0.13);
  --green: #76e6ae;
  --blue: #85c7e8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at 78% 28%,
      rgba(66, 116, 142, 0.16),
      transparent 34rem
    ),
    radial-gradient(
      circle at 14% 75%,
      rgba(255, 116, 120, 0.08),
      transparent 30rem
    ),
    var(--bg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

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

.page-shell {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: 22px;
  height: 21px;
  object-fit: contain;
}

.domain-dot {
  color: var(--accent);
}

.header-link {
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.header-link:hover,
.header-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

main {
  flex: 1;
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  padding: clamp(72px, 10vh, 120px) 0;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 0 0 5px rgba(118, 230, 174, 0.1),
    0 0 16px currentColor;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 6.1vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.accent {
  color: var(--accent);
}

.intro {
  max-width: 650px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}

.specialisms {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}

.specialisms span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #bac2cd;
  background: rgba(255, 255, 255, 0.025);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.button:focus-visible,
.header-link:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.button-primary {
  color: #17090a;
  background: var(--accent);
  box-shadow: 0 12px 32px rgba(255, 116, 120, 0.16);
}

.button-primary:hover {
  background: #ff8a8d;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.065);
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(26, 34, 44, 0.94),
    rgba(12, 16, 22, 0.92)
  );
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.profile-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.08),
    transparent 32%
  );
  content: "";
  pointer-events: none;
}

.card-glow {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(133, 199, 232, 0.16);
  filter: blur(45px);
}

.logo {
  position: relative;
  display: block;
  width: min(88%, 320px);
  height: auto;
  margin: 0 auto 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  object-fit: cover;
}

.card-copy {
  position: relative;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}

.card-label {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rotating-text {
  min-height: 27px;
  margin-top: 10px;
  color: #dce1e8;
  font-family: "DM Mono", monospace;
  font-size: 14px;
}

.prompt {
  color: var(--green);
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 16px;
  margin-left: 3px;
  vertical-align: -3px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.card-footer {
  position: relative;
  display: flex;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.services,
.impact,
.about {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  margin-top: clamp(52px, 7vw, 84px);
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 220px;
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.service-number {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.service-card h3 {
  margin-top: 42px;
  font-size: clamp(21px, 2.2vw, 29px);
  letter-spacing: -0.03em;
}

.service-card p {
  max-width: 440px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.25fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.section-kicker {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.muted-heading {
  color: #778291;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.metrics {
  display: grid;
  margin-top: clamp(52px, 7vw, 84px);
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics > div {
  padding: 28px 24px 30px;
  border-right: 1px solid var(--line);
}

.metrics > div:first-child {
  padding-left: 0;
}

.metrics > div:last-child {
  border-right: 0;
}

.metrics dt {
  color: var(--text);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.metrics dd {
  max-width: 180px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.experience-list {
  display: grid;
  gap: 14px;
  margin-top: 48px;
}

.experience-card {
  display: grid;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  grid-template-columns: 0.75fr 1fr 1.35fr;
  gap: clamp(20px, 4vw, 56px);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.experience-card:hover {
  border-color: rgba(255, 116, 120, 0.26);
  background: rgba(255, 255, 255, 0.035);
}

.experience-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  line-height: 1.5;
}

.company {
  color: var(--blue);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.experience-card h3 {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.experience-card > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tech-list {
  display: flex;
  grid-column: 2 / -1;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.tech-list li {
  padding: 5px 9px;
  border-radius: 5px;
  color: #abb5c2;
  background: rgba(133, 199, 232, 0.07);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.about-panel {
  display: grid;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255, 116, 120, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(255, 116, 120, 0.09),
      transparent 25rem
    ),
    rgba(255, 255, 255, 0.025);
  grid-template-columns: 0.55fr 2.25fr;
  gap: clamp(28px, 6vw, 96px);
}

.about-copy {
  max-width: 770px;
}

.about-copy h2 {
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.about-copy > p {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.about-links a {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 116, 120, 0.45);
  font-size: 13px;
  font-weight: 600;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.about-links a:hover,
.about-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.site-footer {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  color: #687281;
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.site-footer a {
  transition: color 180ms ease;
}

.family {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
}

.family a::before {
  color: var(--accent);
  content: "↳ ";
}

.family a[aria-current="page"] {
  color: var(--accent);
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 12px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .profile-card {
    width: min(100%, 480px);
  }

  .section-heading {
    grid-template-columns: 0.45fr 1.4fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .experience-card {
    grid-template-columns: 0.65fr 1.35fr;
  }

  .experience-card > p,
  .tech-list {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    padding: 22px 0;
  }

  .header-link {
    font-size: 0;
  }

  .header-link span {
    font-size: 18px;
  }

  .hero {
    gap: 46px;
    padding: 64px 0;
  }

  h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .intro {
    margin-top: 24px;
    font-size: 16px;
  }

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

  .profile-card {
    padding: 20px;
    border-radius: 18px;
  }

  .section-heading,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child {
    grid-column: auto;
  }

  .service-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics > div,
  .metrics > div:first-child {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics > div:last-child {
    border-bottom: 0;
  }

  .experience-card {
    grid-template-columns: 1fr;
  }

  .experience-card > p,
  .tech-list {
    grid-column: auto;
  }

  .about-panel {
    border-radius: 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .family {
    justify-content: flex-start;
  }
}

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

  canvas {
    display: none;
  }
}
