:root {
  --purple-deep: #4926f7;
  --purple-soft: #9b82ed;
  --gold: #ffd92e;
  --text: #feffd7;
  --brand: #f1f1f1;
  --link: #fefed8;
  --font: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --pad-x: clamp(1.25rem, 8.33vw, 8rem);
  --pad-y: clamp(2rem, 8vh, 5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--purple-deep);
  overflow-x: clip;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  word-break: break-word;
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(180deg, var(--purple-deep), var(--purple-soft));
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  will-change: transform;
}

.atmosphere__orb--a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, rgba(255, 217, 46, 0.35) 0%, transparent 70%);
  animation: drift-a 16s ease-in-out infinite alternate;
}

.atmosphere__orb--b {
  width: min(38vw, 360px);
  height: min(38vw, 360px);
  bottom: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
  animation: drift-b 20s ease-in-out infinite alternate;
}

.atmosphere__orb--c {
  width: min(28vw, 280px);
  height: min(28vw, 280px);
  top: 38%;
  left: 42%;
  background: radial-gradient(circle, rgba(155, 130, 237, 0.55) 0%, transparent 70%);
  animation: drift-c 14s ease-in-out infinite alternate;
}

.atmosphere__rings {
  position: absolute;
  top: 8%;
  right: 4%;
  width: min(420px, 46vw);
  color: #ffd92e;
  opacity: 0.85;
  animation: spin-slow 48s linear infinite;
}

.atmosphere__node {
  color: #ffd92e;
  opacity: 0.7;
  animation: pulse-node 3.2s ease-in-out infinite;
}

.atmosphere__node--delay {
  animation-delay: 0.8s;
}

.atmosphere__node--delay-2 {
  animation-delay: 1.6s;
}

.atmosphere__realty {
  position: absolute;
  left: -4%;
  bottom: -2%;
  z-index: 0;
  width: min(52vw, 520px);
  height: min(42vh, 340px);
  background-image: url("assets/project-ontwikkeling.jpg");
  background-size: cover;
  background-position: center 50%;
  opacity: 0.58;
  filter: blur(1px) saturate(1);
  -webkit-mask-image: radial-gradient(
    ellipse 85% 80% at 30% 75%,
    #000 25%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 85% 80% at 30% 75%,
    #000 25%,
    transparent 78%
  );
  pointer-events: none;
  transform: scale(1.05);
}

.atmosphere__clouds {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: min(38vh, 280px);
  pointer-events: none;
}

.atmosphere__cloud {
  position: absolute;
  left: -8%;
  width: 116%;
  color: rgba(255, 255, 255, 0.14);
  filter: blur(1.5px);
}

.atmosphere__cloud--a {
  bottom: -18%;
  height: 55%;
  color: rgba(255, 255, 255, 0.16);
  animation: cloud-drift 22s ease-in-out infinite alternate;
}

.atmosphere__cloud--b {
  bottom: 8%;
  height: 48%;
  color: rgba(255, 255, 255, 0.1);
  animation: cloud-drift-alt 28s ease-in-out infinite alternate;
}

.atmosphere__cloud--c {
  bottom: 22%;
  height: 40%;
  color: rgba(216, 206, 255, 0.12);
  animation: cloud-drift 34s ease-in-out infinite alternate-reverse;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: var(--pad-y) var(--pad-x);
}

.page__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.masthead {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.75rem;
  container-type: inline-size;
  container-name: masthead;
}

.brand {
  margin: 0;
  width: 100%;
  max-width: 100%;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  box-sizing: border-box;
}

.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-top: 0.45rem;
}

.established,
.motto {
  margin: 0;
  color: rgb(207, 207, 207);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

.established::after {
  content: "·";
  margin-left: 0.85rem;
  opacity: 0.55;
}

.motto {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

@media (max-width: 480px) {
  .established::after {
    display: none;
  }
}

.motto__heart {
  display: inline-flex;
  width: 1.2em;
  height: 1.2em;
  transform: translateY(0.05em);
}

.motto__heart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.codebox {
  width: min(100%, 28rem);
  margin: 0 0 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  background: rgba(18, 12, 48, 0.72);
  box-shadow: 0 12px 40px rgba(10, 6, 40, 0.28);
  backdrop-filter: blur(10px);
}

.codebox__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.codebox__dots {
  display: inline-flex;
  gap: 0.35rem;
}

.codebox__dots i {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.codebox__dots i:nth-child(1) {
  background: #ff5f57;
}

.codebox__dots i:nth-child(2) {
  background: #febc2e;
}

.codebox__dots i:nth-child(3) {
  background: #28c840;
}

.codebox__file {
  color: rgba(254, 255, 215, 0.55);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.codebox__body {
  margin: 0;
  padding: 0.95rem 0.85rem 1.05rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 0.8rem + 0.45vw, 1.05rem);
  line-height: 1.55;
  white-space: pre;
}

.codebox__body code {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: baseline;
  font: inherit;
}

.codebox__gutter {
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}

.codebox__line {
  color: rgba(254, 255, 215, 0.88);
  min-width: 0;
}

.tok-fn {
  color: #9bdcff;
  font-weight: 500;
}

.tok-str {
  color: var(--gold);
}

.visual {
  width: min(340px, 70vw);
  max-width: 100%;
  aspect-ratio: 1006 / 846;
}

.visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.about {
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}

.meta {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(254, 255, 215, 0.78);
}

.about p,
.meta p {
  margin: 0 0 1.15rem;
  overflow-wrap: anywhere;
}

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

.about__lead {
  margin-bottom: 0.55rem !important;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.about__aside {
  margin: 0 0 1.25rem !important;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 0.8rem + 0.25vw, 1rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.about__aside-not {
  color: rgba(255, 217, 46, 0.45);
  text-decoration: underline;
  text-decoration-color: rgba(255, 217, 46, 0.4);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.about__venture {
  position: relative;
  margin: 1.5rem 0 1.35rem !important;
  padding: 1rem 0 1rem 1rem;
  border-left: 2px solid var(--gold);
}

.about__venture::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  animation: shimmer 2.8s ease-in-out infinite;
}

.about__venture-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about__venture-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 217, 46, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about__venture-icon {
  width: 1.15em;
  height: 1.15em;
  border-radius: 0.28em;
  object-fit: cover;
  flex-shrink: 0;
}

.about__venture-link:hover,
.about__venture-link:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.about__venture-note {
  display: block;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88em;
  font-weight: 400;
}

.meta {
  margin-top: 1.5rem;
}

.meta__email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meta__plane {
  flex-shrink: 0;
  opacity: 0.75;
  transform: translateY(0.5px);
}

.meta__email:hover .meta__plane,
.meta__email:focus-visible .meta__plane {
  opacity: 1;
  color: var(--gold);
}

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

.typed-cursor {
  color: var(--gold);
  font-weight: 500;
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-5%, 7%) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(7%, -4%) scale(1.1);
  }
}

@keyframes drift-c {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-4%, -6%);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-node {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes shimmer {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  40% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes cloud-drift {
  from {
    transform: translateX(-2%);
  }
  to {
    transform: translateX(3%);
  }
}

@keyframes cloud-drift-alt {
  from {
    transform: translateX(2%);
  }
  to {
    transform: translateX(-3%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__orb,
  .atmosphere__rings,
  .atmosphere__node,
  .atmosphere__cloud,
  .about__venture::before,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Desktop: brand full width, then intro | details */
@media (min-width: 992px) {
  .page {
    align-items: center;
  }

  .page__inner {
    max-width: 1200px;
    margin-inline: auto;
    padding: clamp(3rem, 8vh, 5rem) clamp(3rem, 6vw, 5rem);
  }

  .masthead {
    margin-bottom: clamp(2rem, 4vh, 3rem);
  }

  .brand {
    font-size: clamp(2.5rem, 3.2vw, 3.5rem);
  }

  .page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }

  .codebox {
    width: min(100%, 30rem);
    margin-bottom: 1.75rem;
  }

  .codebox__body {
    font-size: 1.05rem;
  }

  .visual {
    width: min(360px, 100%);
  }

  .details {
    padding-top: 0.35rem;
  }

  .about {
    font-size: 1.0625rem;
  }

  .meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(254, 255, 215, 0.22);
    font-size: 0.84rem;
  }
}

@media (min-width: 1400px) {
  .page__inner {
    max-width: 1320px;
    padding-inline: 5rem;
  }

  .brand {
    font-size: 3.75rem;
  }

  .codebox__body {
    font-size: 1.1rem;
  }

  .visual {
    width: 400px;
  }

  .about {
    font-size: 1.125rem;
  }

  .meta {
    font-size: 0.85rem;
  }
}

@media (min-width: 1800px) {
  .page__inner {
    max-width: 1480px;
    padding-inline: 6rem;
  }

  .brand {
    font-size: 4rem;
  }

  .page__grid {
    gap: 6rem;
  }

  .visual {
    width: 440px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  :root {
    --pad-x: clamp(1.25rem, 6vw, 3rem);
    --pad-y: clamp(2rem, 6vh, 4rem);
  }

  .page {
    align-items: flex-end;
  }

  .page__inner {
    padding-bottom: clamp(2.5rem, 10vw, 5rem);
  }

  .brand {
    font-size: clamp(1.3rem, 4.8vw + 0.45rem, 2.4rem);
    font-size: clamp(1.3rem, 5.5cqi + 0.55rem, 2.4rem);
    white-space: nowrap;
    overflow: hidden;
  }

  .codebox {
    width: 100%;
    margin-top: 0.75rem;
  }

  .visual {
    width: min(420px, 88%);
    max-width: 88%;
    margin-inline: auto;
  }
}

/* Phone */
@media (max-width: 600px) {
  :root {
    --pad-x: 1.25rem;
    --pad-y: 1.75rem;
  }

  .page {
    align-items: stretch;
    overflow: visible;
  }

  .atmosphere__rings {
    top: auto;
    bottom: 8%;
    right: -12%;
    width: min(260px, 70vw);
    opacity: 0.55;
  }

  .atmosphere__orb {
    opacity: 0.32;
    filter: blur(36px);
  }

  .atmosphere__realty {
    width: min(78vw, 360px);
    height: min(34vh, 240px);
    opacity: 0.5;
    filter: blur(0.8px) saturate(1);
  }

  .atmosphere__clouds {
    height: min(32vh, 200px);
  }

  .page__inner {
    padding-top: max(1.75rem, env(safe-area-inset-top, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  }

  .masthead {
    margin-bottom: 0.5rem;
  }

  .brand {
    font-size: clamp(1.05rem, 4.2vw + 0.35rem, 1.7rem);
    font-size: clamp(1.05rem, 6.2cqi, 1.7rem);
    letter-spacing: -0.04em;
  }

  .codebox {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .codebox__body {
    font-size: 0.88rem;
    padding: 0.8rem 0.7rem 0.9rem;
  }

  .visual {
    width: min(340px, 82%);
    max-width: 82%;
    margin-inline: auto;
  }

  .about {
    font-size: 0.95rem;
  }

  .meta {
    margin-top: 1.25rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: clamp(0.95rem, 3.8vw + 0.3rem, 1.25rem);
    font-size: clamp(0.95rem, 5.8cqi, 1.25rem);
  }

  .about {
    font-size: 0.9rem;
  }

  .meta {
    font-size: 0.75rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .page {
    align-items: flex-start;
    min-height: auto;
  }

  .page__inner {
    padding-block: 1.25rem;
  }

  .visual {
    width: min(280px, 55vw);
  }

  .masthead {
    margin-bottom: 0.5rem;
  }

  .brand {
    font-size: clamp(1.05rem, 4.2cqi, 1.6rem);
    white-space: nowrap;
  }

  .codebox {
    margin-bottom: 0.75rem;
  }

  .about {
    font-size: 0.9rem;
  }

  .meta {
    margin-top: 1rem;
    font-size: 0.75rem;
  }
}
