:root {
  --bg-deep: #010a05;
  --bg-mid: #072116;
  --line: #68ff9a;
  --ink: #dbffe8;
  --muted: #86b99a;
  --accent: #55ff8e;
  --accent-2: #20d676;
  --accent-3: #b8ff62;
  --body-gradient: linear-gradient(115deg, #04170f 0%, #010a05 56%, #021109 100%);
  --text-main: #dbffe8;
  --text-soft: #b8e7cc;
  --text-muted: #87b398;
  --link: #d4ffe4;
  --chip-bg: rgba(6, 24, 14, 0.62);
  --chip-border: rgba(90, 190, 129, 0.34);
  --card-bg: rgba(6, 25, 14, 0.74);
  --card-border: rgba(94, 188, 130, 0.3);
  --panel-shadow: 0 20px 45px rgba(0, 12, 5, 0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: clip;
  overflow-y: hidden;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-main);
  background: var(--body-gradient);
  overflow-x: clip;
  --mx: 0;
  --my: 0;
}

body.is-loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  gap: 1rem;
  background:
    radial-gradient(700px 420px at 18% 16%, rgba(32, 214, 118, 0.16), transparent 55%),
    radial-gradient(900px 480px at 80% 84%, rgba(85, 255, 142, 0.16), transparent 58%),
    linear-gradient(120deg, #010a05, #052114);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.is-loaded .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: 78px;
  height: 78px;
  position: relative;
}

.loader-mark span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: spin 1.25s linear infinite;
}

.loader-mark span:nth-child(2) {
  inset: 8px;
  animation-duration: 1.75s;
  animation-direction: reverse;
}

.loader-mark span:nth-child(3) {
  inset: 16px;
  animation-duration: 2.3s;
}

.loader p {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: #a8e8c2;
}

.split {
  position: fixed;
  inset: 0;
  z-index: -3;
  animation: ambientDrift 16s ease-in-out infinite alternate;
}

.split-left {
  clip-path: inset(0 50% 0 0);
  background:
    radial-gradient(540px 340px at 12% 92%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-mid) 85%, white 0%), color-mix(in srgb, var(--bg-deep) 88%, black 0%));
}

.split-right {
  clip-path: inset(0 0 0 50%);
  background:
    radial-gradient(550px 350px at 86% 8%, color-mix(in srgb, var(--accent) 24%, #113a23), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-mid) 64%, #03140b), color-mix(in srgb, var(--bg-deep) 92%, #010905));
  animation-delay: 0.6s;
}

.grid-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  pointer-events: none;
  animation: noiseShift 22s linear infinite;
}

.site-shell {
  min-height: 100svh;
  width: min(1220px, calc(100vw - 1.4rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: clamp(0.45rem, 1vw, 0.8rem) clamp(0.35rem, 1.2vw, 0.75rem) 0.7rem;
  transform-style: preserve-3d;
  transform:
    perspective(1400px)
    rotateX(calc(var(--py, 0) * 1.4deg))
    rotateY(calc(var(--px, 0) * -1.8deg));
  transition: transform 0.2s ease;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1rem);
  padding: clamp(0.3rem, 1vw, 0.55rem) clamp(0.25rem, 1.1vw, 0.5rem);
  opacity: 0;
  animation: fadeSlideDown 0.7s cubic-bezier(0.18, 0.9, 0.28, 1) 0.1s forwards;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.68rem;
  color: #d8ffe8;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.brand img {
  width: clamp(44px, 4vw, 56px);
  height: clamp(44px, 4vw, 56px);
  filter:
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 8px rgba(85, 255, 142, 0.28));
  transform: translateZ(10px);
}

.brand-mark::after {
  content: none;
}

.brand-name {
  display: grid;
  line-height: 1.02;
  row-gap: 0.04rem;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 800;
  font-size: clamp(0.78rem, 1.05vw, 0.98rem);
  color: #dcffe9;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.brand-name span {
  display: block;
}

.brand-name span:last-child {
  color: var(--accent);
}

.nav-links {
  justify-self: center;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.8rem, 2.8vw, 2.1rem);
}

.nav-links a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.74rem, 1.05vw, 0.9rem);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  opacity: 0;
  transform: translateY(-8px);
  animation: navReveal 0.5s ease forwards;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.nav-links a:nth-child(1) {
  animation-delay: 0.28s;
}

.nav-links a:nth-child(2) {
  animation-delay: 0.35s;
}

.nav-links a:nth-child(3) {
  animation-delay: 0.42s;
}

.nav-links a:nth-child(4) {
  animation-delay: 0.49s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
  outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.sign-btn {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  font-size: clamp(0.68rem, 0.95vw, 0.84rem);
  color: #03210f;
  background: var(--accent);
  border: 1px solid rgba(85, 255, 142, 0.9);
  border-radius: 3px;
  padding: clamp(0.54rem, 1.15vw, 0.74rem) clamp(0.8rem, 1.58vw, 1.08rem);
  box-shadow: 0 0 18px rgba(85, 255, 142, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: hirePulse 3.8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.sign-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(220, 255, 234, 0.45) 50%, transparent 66%);
  transform: translateX(-130%);
  animation: hireSheen 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}


.sign-btn:hover,
.sign-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(85, 255, 142, 0.55);
  outline: none;
}

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  text-align: center;
  row-gap: clamp(0.08rem, 0.36vw, 0.28rem);
  padding: clamp(0.05rem, 0.55vw, 0.35rem) 0 clamp(0.25rem, 0.9vw, 0.65rem);
  transform: translate(calc(var(--mx) * 4px), calc((var(--my) * 4px) - 30px));
  transition: transform 0.16s ease;
}

.crane {
  position: relative;
  width: clamp(50px, 6vw, 68px);
  height: clamp(88px, 13vw, 116px);
  margin-bottom: 0;
  opacity: 0;
  animation:
    fadeRise 0.7s ease 0.5s forwards,
    sway 4.5s ease-in-out 1.2s infinite;
  transform-origin: top center;
  z-index: 2;
}

.crane .line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  top: -56px;
  height: 76px;
  background: linear-gradient(180deg, #6a9480, #d7ffe4);
}

.crane .hook-head {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 24px;
  height: 28px;
  transform: translateX(-50%) rotate(-8deg);
  border-radius: 6px;
  border: 3px solid #55ff8e;
  background: repeating-linear-gradient(145deg, #55ff8e 0 6px, #08311e 6px 12px);
}

.crane .hook-ring {
  position: absolute;
  left: 50%;
  top: 38px;
  width: 16px;
  height: 24px;
  transform: translateX(-50%);
  border: 4px solid #bee7cd;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 0 0 20px 20px;
}

h1 {
  margin: 0.06rem 0 0;
  font-family: "Outfit", sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 9.5vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: var(--text-main);
  text-shadow: 0 12px 45px rgba(0, 0, 0, 0.65);
  position: relative;
  top: -14px;
  opacity: 0;
  animation: titleIn 0.85s cubic-bezier(0.2, 0.86, 0.25, 1) 0.62s forwards;
}

h1 .accent {
  color: var(--accent);
  display: inline-block;
  animation: bounce 1.7s ease-in-out infinite;
}

h1 span:last-child {
  display: block;
  font-size: clamp(1.45rem, 5.2vw, 3rem);
  letter-spacing: 0.01em;
  margin-top: 0.24rem;
}

.lead {
  margin: 0.72rem auto 0;
  max-width: 100%;
  font-size: clamp(0.9rem, 1.55vw, 1rem);
  line-height: 1.52;
  color: var(--text-soft);
  padding-inline: 0;
  opacity: 0;
  animation: textIn 0.8s ease 0.76s forwards;
  display: grid;
  gap: 0.3rem;
}

.lead-line {
  display: block;
  position: relative;
  padding-left: 1.15rem;
}

.lead-line::before {
  content: "$";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.identity {
  margin: 0.95rem auto 0;
  max-width: 100%;
  display: grid;
  justify-content: flex-start;
  gap: 0.28rem;
  padding-inline: 0;
  opacity: 0;
  animation: textIn 0.82s ease 0.9s forwards;
}

.identity-pill {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.2vw, 0.96rem);
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding-left: 1.15rem;
  position: relative;
}

.identity-pill::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.identity-name {
  color: var(--text-main);
  font-weight: 700;
}

.contact-grid {
  margin-top: 1rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  perspective: none;
  opacity: 0;
  animation: fadeRise 0.8s ease 1.04s forwards;
}

.contact-card {
  text-decoration: none;
  color: var(--text-main);
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  transition: color 0.2s ease;
  transform-style: flat;
  position: relative;
  animation: none;
}

.contact-card:nth-child(2) {
  animation-delay: 0.3s;
}

.contact-card:nth-child(3) {
  animation-delay: 0.6s;
}

.contact-card::before {
  content: none;
}

.contact-card .icon {
  display: none;
}

.contact-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.contact-card .text {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
  grid-template-columns: 130px 1fr;
  align-items: baseline;
}

.contact-card .text strong {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.contact-card .text small {
  color: var(--text-soft);
  font-size: clamp(0.84rem, 1.02vw, 0.98rem);
  font-weight: 600;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  line-height: 1.35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  opacity: 0;
  animation: textIn 0.7s ease forwards;
}

.terminal-console {
  margin-top: 0.35rem;
  width: min(980px, calc(100vw - 1.2rem));
  border: 1px solid rgba(90, 190, 129, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(5, 20, 12, 0.92), rgba(4, 17, 10, 0.84));
  box-shadow:
    0 18px 42px rgba(0, 12, 5, 0.45),
    inset 0 0 0 1px rgba(95, 212, 145, 0.1);
  padding: 2.25rem clamp(0.82rem, 1.6vw, 1.02rem) clamp(0.68rem, 1.4vw, 0.9rem);
  position: relative;
  overflow: hidden;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  display: flex;
  flex-direction: column;
}

.typed-output {
  margin: 0;
  min-height: 14lh;
  color: var(--text-soft);
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  line-height: 1.48;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 0 10px rgba(85, 255, 142, 0.07);
}

.typed-output .cursor {
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  width: 0.8ch;
  margin-left: 0.14ch;
  text-decoration: none;
  position: relative;
  top: 0.02em;
}

.typed-output a {
  color: #aef8ca;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.typed-output a:hover,
.typed-output a:focus-visible {
  color: #dcffe9;
  outline: none;
}

.terminal-console::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34px;
  background: #0a2a18;
  border-bottom: none;
  box-shadow: none;
}

.terminal-console::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 14px;
  width: 56px;
  height: 12px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 8px 6px, #e85d5d 0 4px, transparent 5px),
    radial-gradient(circle at 28px 6px, #e7c45c 0 4px, transparent 5px),
    radial-gradient(circle at 48px 6px, #67d48d 0 4px, transparent 5px);
}

.console-title {
  margin: 0;
  position: absolute;
  top: 8px;
  left: 76px;
  padding: 0.08rem 0.4rem;
  background: #0a2a18;
  border-radius: 4px;
  font-size: clamp(0.72rem, 0.95vw, 0.84rem);
  letter-spacing: 0.01em;
  color: #a7e8c1;
  opacity: 0.95;
  z-index: 3;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.contact-card:nth-child(1) .text small {
  animation-delay: 1.22s;
}

.contact-card:nth-child(2) .text small {
  animation-delay: 1.3s;
}

.contact-card:nth-child(3) .text small {
  animation-delay: 1.38s;
}

.contact-card:hover,
.contact-card:focus-visible {
  color: var(--accent);
  outline: none;
}

.topbar,
h1,
.lead,
.identity,
.contact-grid {
  transform: translateZ(12px);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) translateZ(10px);
  }
  50% {
    transform: translateY(-2px) translateZ(10px);
  }
}

@keyframes logoShadow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(0.94);
    opacity: 0.22;
  }
}

@keyframes ambientDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(8px, -10px, 0) scale(1.03);
  }
}

@keyframes noiseShift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 56px 0, 0 56px;
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textIn {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    letter-spacing: 0.08em;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.04em;
  }
}

@keyframes cardBreath {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes hirePulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(85, 255, 142, 0.32);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 22px rgba(85, 255, 142, 0.5);
    transform: translateY(-1px);
  }
}

@keyframes hireSheen {
  0%,
  68%,
  100% {
    transform: translateX(-130%);
    opacity: 0;
  }
  72% {
    opacity: 0.85;
  }
  92% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.8rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .sign-btn {
    justify-self: center;
  }

  .brand {
    gap: 0.5rem;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: calc(100vw - 0.7rem);
    padding-bottom: 0.5rem;
  }

  h1 {
    line-height: 0.98;
    letter-spacing: 0.03em;
    top: -10px;
  }

  .lead,
  .identity {
    max-width: 100%;
  }

  .contact-grid {
    width: calc(100vw - 0.8rem);
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .terminal-console {
    width: calc(100vw - 0.8rem);
  }

  .typed-output {
    min-height: 13.4lh;
    line-height: 1.42;
  }

}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100vw - 0.35rem);
    padding-bottom: 0.4rem;
  }

  .topbar {
    padding-inline: 0.2rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .nav-links a {
    font-size: 0.74rem;
  }

  .brand-name {
    font-size: 0.74rem;
  }

  .lead {
    width: calc(100% - 0.2rem);
    line-height: 1.55;
  }

  .identity {
    width: calc(100% - 0.2rem);
  }

  .identity-pill {
    width: 100%;
    text-align: left;
  }

  .contact-card .text {
    grid-template-columns: 108px 1fr;
  }

  .lead-line,
  .identity-pill {
    padding-left: 0.95rem;
  }

  .terminal-console {
    width: calc(100vw - 0.45rem);
    border-radius: 12px;
    padding: 2.35rem 0.78rem 0.78rem;
  }

  .console-title {
    left: 70px;
  }

  .typed-output {
    min-height: 12.8lh;
    font-size: 0.8rem;
  }

  .contact-card {
    padding: 0.72rem;
  }

  .site-shell {
    transform: none;
  }
}

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

  .hero,
  .crane,
  h1 .accent,
  .brand img,
  .brand-mark::after,
  .site-shell {
    transform: none !important;
  }

  .split,
  .grid-noise,
  .topbar,
  .nav-links a,
  .nav-links a::after,
  .crane,
  h1,
  .lead,
  .identity,
  .contact-grid,
  .contact-card,
  .contact-card .text small,
  .typed-output .cursor,
  .sign-btn,
  .sign-btn::before {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}
