:root {
  --ink: #070708;
  --card: #121214;
  --foam: #f4f1ea;
  --mist: rgba(244, 241, 234, 0.72);
  --ink-soft: rgba(244, 241, 234, 0.55);
  --line: rgba(255, 255, 255, 0.12);
  --grey: #9a9a9a;
  --gold: #ffb016;
  --create: #6fbf3a;
  --develop: #e25a3c;
  --operate: #3eb6ef;
  --font-display: "Outfit", "Helvetica Neue", sans-serif;
  --font-body: "Geist", "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--foam);
  background: var(--ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- Atmosphere --- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(110% 70% at 50% -10%, rgba(255, 176, 22, 0.16) 0%, transparent 55%),
    radial-gradient(80% 60% at 100% 100%, rgba(62, 182, 239, 0.08) 0%, transparent 55%),
    radial-gradient(70% 60% at 0% 100%, rgba(111, 191, 58, 0.06) 0%, transparent 55%),
    linear-gradient(165deg, #0d0d10 0%, var(--ink) 55%, #040405 100%);
}

.atmosphere__wash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 38% at 30% 22%, rgba(255, 176, 22, 0.09), transparent 60%),
    radial-gradient(ellipse 42% 32% at 76% 30%, rgba(226, 90, 60, 0.08), transparent 65%);
  animation: wash-drift 18s ease-in-out infinite alternate;
}

.atmosphere__grid {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 140vmax;
  height: 70vmax;
  transform: translateX(-50%) perspective(900px) rotateX(62deg);
  transform-origin: center top;
  background:
    repeating-linear-gradient(90deg, transparent 0 56px, rgba(255, 255, 255, 0.035) 56px 57px),
    repeating-linear-gradient(0deg, transparent 0 56px, rgba(255, 255, 255, 0.03) 56px 57px);
  border-top: 1px solid rgba(255, 176, 22, 0.16);
  opacity: 0.8;
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
}

.atmosphere__beam {
  position: absolute;
  top: -10%;
  width: 38vw;
  height: 120%;
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.07) 0%, rgba(255, 176, 22, 0.04) 35%, transparent 70%);
  filter: blur(2px);
  transform-origin: top center;
  animation: beam-sway 12s ease-in-out infinite alternate;
}

.atmosphere__beam--a {
  left: 18%;
  transform: skewX(-12deg);
  animation-delay: -2s;
}

.atmosphere__beam--b {
  right: 12%;
  width: 28vw;
  transform: skewX(10deg);
  opacity: 0.7;
  animation-duration: 15s;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes wash-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

@keyframes beam-sway {
  from { opacity: 0.45; transform: skewX(-12deg) translateX(-1.5%); }
  to { opacity: 0.85; transform: skewX(-8deg) translateX(2%); }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__wash,
  .atmosphere__beam,
  .mark,
  .brand,
  .tagline,
  .headline,
  .support,
  .contact {
    animation: none !important;
  }
}

/* --- Hero --- */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.15rem;
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 14vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  min-height: 100dvh;
}

.mark {
  width: auto;
  height: clamp(4rem, 10vw, 6rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 11vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.brand__net {
  font-weight: 600;
  color: var(--foam);
}

.brand__projects {
  font-weight: 500;
  color: var(--grey);
}

.brand__tm {
  margin-left: 0.08em;
  font-size: 0.32em;
  font-weight: 500;
  color: var(--gold);
  vertical-align: super;
  letter-spacing: 0;
}

.tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.t-create { color: var(--create); }
.t-develop { color: var(--develop); }
.t-operate { color: var(--operate); }
.t-sep { margin: 0 0.6em; color: rgba(255, 255, 255, 0.25); }

.headline {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--gold);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.support {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--mist);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.contact {
  margin: 0.65rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.contact__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact__link {
  width: fit-content;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--foam);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 18, 20, 0.6);
  padding: 0.8rem 1.1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact__link:hover,
.contact__link:focus-visible {
  border-color: rgba(255, 176, 22, 0.55);
  color: var(--gold);
  outline: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}

.foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1rem 1.25rem 1.4rem;
  text-align: center;
}

.foot p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.42);
}

@media (max-width: 560px) {
  .hero {
    width: min(100%, calc(100% - 2rem));
    gap: 1rem;
    justify-content: flex-end;
    padding-bottom: 5.5rem;
  }

  .atmosphere__grid {
    bottom: -8%;
    opacity: 0.7;
  }

  .atmosphere__beam {
    width: 55vw;
  }
}
