:root {
  color-scheme: dark;
  --bg: #172524;
  --ink: #f5f7f4;
  --muted: #b8c7c3;
  --soft: #e4efec;
  --line: rgba(221, 247, 242, 0.2);
  --teal: #6fe2d5;
  --green: #bae58a;
  --amber: #f5ca82;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 8%, rgba(111, 226, 213, 0.25), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(245, 202, 130, 0.21), transparent 32%),
    linear-gradient(180deg, var(--bg), #21302e 64%, #182322);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 74svh;
  display: grid;
  place-items: center;
  padding: clamp(54px, 9vw, 96px) 20px clamp(44px, 7vw, 76px);
  isolation: isolate;
}

#tech-canvas,
.ambient-layer {
  position: absolute;
  inset: 0;
}

#tech-canvas {
  z-index: -4;
  width: 100%;
  height: 100%;
}

.ambient-layer {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(23, 37, 36, 0.2), rgba(23, 37, 36, 0.44)),
    radial-gradient(circle at 50% 38%, rgba(111, 226, 213, 0.2), transparent 40%);
}

.ambient-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.78), transparent 72%);
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  text-align: center;
}

.logo {
  width: min(360px, 72vw);
  margin: 0 auto clamp(34px, 5vw, 54px);
  padding: 12px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 11vw, 8.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.role {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 8px 14px;
  border: 1px solid rgba(239, 187, 97, 0.34);
  border-left: 3px solid var(--amber);
  background: rgba(239, 187, 97, 0.08);
  color: #ffe4b5;
  font-weight: 820;
}

.intro {
  max-width: 780px;
  margin: 0 auto 32px;
  color: var(--soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  min-width: 112px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #edf5f2;
  font-size: 0.94rem;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-links a:first-child {
  min-width: 152px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #06100e;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(68, 211, 197, 0.68);
  background: rgba(68, 211, 197, 0.1);
  transform: translateY(-2px);
}

.social-links a:first-child:hover,
.social-links a:first-child:focus-visible {
  background: linear-gradient(135deg, var(--teal), var(--green));
}

.about {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 8vw, 88px) 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(22, 34, 33, 0.78);
}

.about-inner {
  width: min(100%, 860px);
  margin: 0 auto;
}

.about-copy {
  color: #dce7e3;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
}

.about-copy p {
  margin-bottom: 20px;
}

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

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .hero {
    min-height: 72svh;
    padding-inline: 14px;
  }

  .logo {
    width: min(310px, 84vw);
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5.4rem);
  }

  .role {
    width: 100%;
  }

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

  .social-links a,
  .social-links a:first-child {
    min-width: 0;
  }

  .social-links a:first-child {
    grid-column: 1 / -1;
  }

  .footer {
    flex-direction: column;
    width: min(calc(100% - 28px), var(--max));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
