* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: rgba(230, 238, 245, 0.74);
  --soft: rgba(230, 238, 245, 0.56);
  --night: #02070a;
  --panel: rgba(8, 17, 22, 0.74);
  --line: rgba(196, 231, 244, 0.2);
  --cyan: #50eadb;
  --orange: #ff8a28;
  --pink: #ff6fa8;
  --green: #67f0bf;
  --blue: #7ab6ff;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

img,
svg {
  display: block;
}

.site-header,
.hero-copy,
.project-runway,
.proof-rail,
.section-shell {
  width: min(100% - 96px, 1510px);
  margin-right: auto;
  margin-left: auto;
}

.cinematic {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding-bottom: 42px;
  background:
    radial-gradient(circle at 72% 22%, rgba(80, 234, 219, 0.16), transparent 26%),
    linear-gradient(180deg, #081117 0%, #02070a 74%);
  isolation: isolate;
}

.cinematic__photo {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: min(78vw, 1320px);
  height: 62%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.93;
  filter: saturate(0.92) contrast(1.08);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.7) 22%, #000 48%),
    linear-gradient(180deg, #000 0%, #000 66%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.7) 22%, #000 48%),
    linear-gradient(180deg, #000 0%, #000 66%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transform: scale(1.01);
  animation: photoDrift 18s ease-in-out infinite alternate;
}

.cinematic__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 7, 10, 0.98) 0%, rgba(2, 7, 10, 0.86) 31%, rgba(2, 7, 10, 0.38) 67%, rgba(2, 7, 10, 0.2) 100%),
    linear-gradient(180deg, rgba(2, 7, 10, 0.08) 0%, rgba(2, 7, 10, 0.18) 43%, #02070a 100%);
}

.cinematic__grid,
.cinematic__floor {
  position: absolute;
  right: -5%;
  bottom: -8%;
  left: -5%;
  z-index: 1;
  height: 43%;
  pointer-events: none;
}

.cinematic__grid {
  background:
    linear-gradient(rgba(80, 234, 219, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 234, 219, 0.08) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 4%, rgba(80, 234, 219, 0.3), transparent 42%);
  background-size: 100% 42px, 82px 100%, 100% 100%;
  transform: perspective(720px) rotateX(64deg);
  transform-origin: center bottom;
  opacity: 0.58;
}

.cinematic__floor {
  background:
    linear-gradient(112deg, transparent 0 10%, rgba(255, 138, 40, 0.38) 10.2%, transparent 12% 72%, rgba(122, 182, 255, 0.52) 72.3%, transparent 74%),
    linear-gradient(68deg, transparent 0 15%, rgba(255, 111, 168, 0.42) 15.2%, transparent 17% 71%, rgba(80, 234, 219, 0.42) 71.2%, transparent 73%),
    radial-gradient(ellipse at 50% 18%, rgba(80, 234, 219, 0.34), transparent 52%);
  opacity: 0.82;
  filter: blur(0.2px);
}

.site-header {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 830;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  color: rgba(248, 251, 250, 0.92);
  font-size: 1rem;
  font-weight: 680;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  opacity: 0;
  transform: scaleX(0.5);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 30px 0 0;
}

.hero-copy__eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(4rem, 7vw, 6rem);
  font-weight: 880;
  line-height: 0.9;
  text-shadow:
    0 20px 80px rgba(0, 0, 0, 0.65),
    0 0 42px rgba(80, 234, 219, 0.16);
}

.hero-copy > p:not(.hero-copy__eyebrow) {
  max-width: 520px;
  margin: 22px 0 24px;
  color: rgba(241, 247, 250, 0.84);
  font-size: clamp(1.32rem, 1.8vw, 1.72rem);
  font-weight: 460;
  line-height: 1.26;
}

.project-card__action svg,
.profile-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.project-runway {
  position: relative;
  z-index: 3;
  margin-top: 42px;
}

.runway-label {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.project-card {
  --accent: var(--cyan);
  --accent-2: var(--blue);
  position: relative;
  display: flex;
  min-height: 312px;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 62%, rgba(255, 255, 255, 0.16));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 17, 23, 0.68);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 22px color-mix(in srgb, var(--accent) 32%, transparent),
    0 24px 50px rgba(0, 0, 0, 0.32);
  isolation: isolate;
  transform: translateY(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.project-card::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  background:
    linear-gradient(132deg, color-mix(in srgb, var(--accent) 52%, transparent), transparent 34%),
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent-2) 32%, transparent), transparent 58%);
  opacity: 0.44;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 34px color-mix(in srgb, var(--accent) 46%, transparent),
    0 30px 72px rgba(0, 0, 0, 0.46);
  transform: translateY(-5px);
}

.project-card--disabled {
  cursor: default;
}

.project-card--disabled:hover {
  transform: translateY(0);
}

.project-card--nesty {
  --accent: var(--pink);
  --accent-2: #9f7cff;
}

.project-card--pulsecheck {
  --accent: #d8e8f4;
  --accent-2: #74d9ca;
}

.project-card--sonpera {
  --accent: #49dfc0;
  --accent-2: #5bc4ff;
}

.project-card--deckforge {
  --accent: var(--orange);
  --accent-2: #ff5a2e;
}

.project-card--acc {
  --accent: var(--green);
  --accent-2: #56d2ff;
}

.project-card--productionplanner {
  --accent: #4fd2c2;
  --accent-2: #2f6df6;
}

.project-card__media {
  position: relative;
  display: block;
  height: 108px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #061014;
}

.project-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(2, 7, 10, 0), rgba(2, 7, 10, 0.36)),
    radial-gradient(circle at 24% 12%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 44%);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.96) contrast(1.05);
}

.project-card--nesty .project-card__media img,
.project-card--pulsecheck .project-card__media img {
  object-position: center 14%;
}

.project-card--deckforge .project-card__media img,
.project-card--sonpera .project-card__media img {
  object-position: center 18%;
}

.project-card--acc .project-card__media img {
  object-position: center 34%;
}

.project-card--productionplanner .project-card__media img {
  object-position: center 42%;
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  padding: 15px 18px 0;
}

.project-card__head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.project-card__name {
  min-width: 0;
  color: #f9fcff;
  font-size: 1.38rem;
  font-weight: 830;
  line-height: 1.08;
}

.project-card__copy {
  color: rgba(235, 243, 247, 0.78);
  font-size: 0.88rem;
  line-height: 1.42;
}

.project-card__status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: rgba(217, 229, 235, 0.68);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-card__status::before {
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.project-card__status--live {
  color: #37ea7c;
}

.project-card__status--testing {
  color: #43d6e7;
}

.project-card__action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px -18px 0;
  padding: 0 18px;
  color: rgba(250, 253, 255, 0.95);
  border-top: 1px solid color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, 0.12));
  font-size: 0.91rem;
  font-weight: 780;
}

.project-card__action svg {
  color: var(--accent);
}

.project-card__action--locked {
  color: rgba(217, 229, 235, 0.56);
}

.product-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  overflow: hidden;
  color: var(--cyan);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
}

.product-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.product-icon--nesty {
  background: #091013;
}

.product-icon--nesty img {
  width: 86%;
  height: 86%;
}

.product-icon--pulsecheck {
  background: #f6fffd;
}

.product-icon--sonpera {
  background: #ffffff;
}

.product-icon--deckforge {
  background: #0d1323;
}

.product-icon--initials {
  color: var(--cyan);
  font-size: 1.02rem;
  font-weight: 860;
  letter-spacing: 0;
}

.product-icon--productionplanner {
  color: #dffdf8;
  background: linear-gradient(135deg, #0b4f5c, #092034);
}

.proof-rail {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(260px, 1.1fr);
  gap: 0;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(196, 231, 244, 0.16);
  border-radius: 8px;
  background: rgba(3, 10, 14, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.proof-item,
.proof-quote {
  display: flex;
  min-height: 90px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-right: 1px solid rgba(196, 231, 244, 0.16);
}

.proof-item svg {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: var(--cyan);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.proof-item strong,
.proof-item small {
  display: block;
}

.proof-item strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.proof-item small {
  color: rgba(235, 243, 247, 0.68);
  font-size: 0.78rem;
  line-height: 1.35;
}

.proof-quote {
  display: block;
  margin: 0;
  border-right: 0;
}

.proof-quote blockquote {
  margin: 0;
  color: #ffffff;
  font-size: 0.86rem;
  line-height: 1.48;
}

.proof-quote blockquote::before {
  content: '"';
  margin-right: 6px;
  color: var(--cyan);
  font-size: 2.2rem;
  font-weight: 860;
  line-height: 0;
  vertical-align: -0.34em;
}

.proof-quote figcaption {
  margin-top: 7px;
  color: rgba(235, 243, 247, 0.7);
  font-size: 0.8rem;
}

.proof-quote figcaption::before {
  content: "- ";
}

.about {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #02070a 0%, #061014 100%);
  border-top: 1px solid rgba(196, 231, 244, 0.14);
}

.about::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(80, 234, 219, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(80, 234, 219, 0.05) 1px, transparent 1px);
  background-size: 90px 100%, 100% 72px;
  opacity: 0.2;
}

.about__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 48px 0 54px;
}

.profile-photo {
  display: inline-flex;
  width: 112px;
  height: 112px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #f8fbfa;
  border: 1px solid rgba(80, 234, 219, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(80, 234, 219, 0.3), rgba(255, 138, 40, 0.14)),
    #071516;
  box-shadow: 0 0 46px rgba(80, 234, 219, 0.16);
}

.profile-photo span {
  font-size: 2.15rem;
  font-weight: 850;
  letter-spacing: 0;
}

.about__copy {
  max-width: 860px;
}

.about h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 830;
  line-height: 1.05;
}

.about p {
  margin: 0;
  color: rgba(235, 243, 247, 0.72);
  font-size: 1rem;
  line-height: 1.64;
}

.about p + p {
  margin-top: 10px;
}

.about__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.about__signals span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: #dffefa;
  border: 1px solid rgba(80, 234, 219, 0.22);
  border-radius: 6px;
  background: rgba(80, 234, 219, 0.08);
  font-size: 0.86rem;
  font-weight: 760;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  border-bottom: 1px solid currentColor;
  font-size: 1rem;
  font-weight: 760;
  white-space: nowrap;
}

.profile-link:hover {
  color: var(--cyan);
}

.site-footer {
  position: relative;
  z-index: 6;
  min-height: 74px;
  display: flex;
  align-items: center;
  color: rgba(235, 243, 247, 0.78);
  background: #02070a;
  border-top: 1px solid rgba(196, 231, 244, 0.12);
}

.site-footer .section-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-footer span {
  font-size: 1rem;
  font-weight: 680;
}

.footer-admin-link {
  color: rgba(235, 243, 247, 0.76);
  font-size: 0.92rem;
  font-weight: 740;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.footer-admin-link:hover {
  color: var(--cyan);
}

:focus-visible {
  outline: 3px solid #ff8a28;
  outline-offset: 4px;
}

@media (max-width: 1280px) {
  .site-header,
  .hero-copy,
  .project-runway,
  .proof-rail,
  .section-shell {
    width: calc(100% - 64px);
  }

  .project-cards {
    display: flex;
    overflow-x: auto;
    padding: 2px 4px 18px;
    scroll-padding: 4px;
    scroll-snap-type: x proximity;
  }

  .project-card {
    min-width: 292px;
    max-width: 320px;
    scroll-snap-align: start;
  }

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

  .proof-item:nth-child(even) {
    border-right: 0;
  }

  .proof-quote {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(196, 231, 244, 0.16);
  }
}

@media (max-width: 900px) {
  .cinematic__photo {
    right: -210px;
    width: 1080px;
    height: 58%;
    opacity: 0.56;
    object-position: center top;
  }

  .hero-copy {
    padding-top: 54px;
  }

  .project-runway {
    margin-top: 52px;
  }

  .about__grid {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 24px;
  }

  .profile-photo {
    width: 88px;
    height: 88px;
  }

  .profile-photo span {
    font-size: 1.65rem;
  }

  .profile-link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-copy,
  .project-runway,
  .proof-rail,
  .section-shell {
    width: calc(100% - 32px);
  }

  .cinematic {
    padding-bottom: 28px;
  }

  .site-header {
    min-height: 74px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .hero-copy {
    padding-top: 46px;
  }

  .hero-copy__eyebrow {
    max-width: 260px;
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    font-size: 3.3rem;
  }

  .hero-copy > p:not(.hero-copy__eyebrow) {
    max-width: 340px;
    margin: 20px 0 26px;
    font-size: 1.2rem;
  }

  .project-runway {
    margin-top: 40px;
  }

  .project-cards {
    gap: 14px;
    margin-right: -16px;
    padding-right: 16px;
  }

  .project-card {
    min-width: min(86vw, 312px);
  }

  .project-card__media {
    height: 104px;
  }

  .project-card__name {
    font-size: 1.22rem;
  }

  .proof-rail {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .proof-item,
  .proof-quote {
    min-height: 84px;
    border-right: 0;
    border-bottom: 1px solid rgba(196, 231, 244, 0.16);
  }

  .proof-quote {
    border-bottom: 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    padding: 38px 0 46px;
  }

  .profile-link {
    grid-column: auto;
  }
}

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

@keyframes photoDrift {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.04) translate3d(-14px, -6px, 0);
  }
}
