@font-face {
  font-family: space-grotesk;
  src: url("/company/fonts/body/SpaceGrotesk.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

@font-face {
  font-family: rajdhani;
  src: url("/company/fonts/display/Rajdhani-Regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: rajdhani;
  src: url("/company/fonts/display/Rajdhani-Medium.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: rajdhani;
  src: url("/company/fonts/display/Rajdhani-SemiBold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: rajdhani;
  src: url("/company/fonts/display/Rajdhani-Bold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

* {
  line-height: calc(4px + 2ex);
  box-sizing: border-box;
}

html {
  --font-body: space-grotesk, system-ui, sans-serif;
  --font-display: rajdhani, var(--font-body);

  --bg-hs: 215, 72.5%;
  --fg-hs: 300, 97.5%;
  --bg2-hs: 215, 15%;
  --fg2-hs: 240, 4%;
  --accent-hs: 310, 90%;
  --accent2-hs: 200, 80%;

  --bg-raw: var(--bg-hs), 1%;
  --fg-raw: var(--fg-hs), 97.5%;
  --bg2-raw: var(--bg2-hs), 5%;
  --fg2-raw: var(--fg2-hs), 60%;
  --accent-raw: var(--accent-hs), 85%;
  --accent2-raw: var(--accent2-hs), 80%;

  --bg: hsl(var(--bg-raw));
  --fg: hsl(var(--fg-raw));
  --bg2: hsl(var(--bg2-raw));
  --fg2: hsl(var(--fg2-raw));
  --accent: hsl(var(--accent-raw));
  --accent2: hsl(var(--accent2-raw));

  font-family: var(--font-body);
  line-height: 1.5;
  font-weight: 500;

  color-scheme: light dark;
  color: var(--fg);
  background-color: var(--bg);

  accent-color: var(--accent);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
}

main {
  min-height: 100vh;
}

article {
  position: relative;
  z-index: 3;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: 1.25rem;
}

::selection {
  background: hsla(var(--accent2-raw), 0.3);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin-block: 0.75em 0.5em;
}

h2 {
  font-size: 1.8rem;
  margin-block: 0.9em 0.3em;
}

h3 {
  font-size: 1.3rem;
  margin-block: 0.5em 0.25em;
}

p {
  margin-block: 0.25em;
}

a {
  color: var(--accent2);
  transition: color 0.3s ease;
}

a:visited {
  color: var(--accent);
}

.card {
  --highlight: var(--accent-raw);
  background-color: hsla(310, 50%, 1%, 0.2);
  box-shadow:
    inset 0 0 0.05rem 0.075rem hsla(var(--fg2-raw), 0.125),
    0 0 0.5rem rgba(0, 0, 0, 0.1);
  padding: 1rem;
  corner-shape: superellipse(1.25);
  border-radius: 1.25rem;
}

.card:nth-of-type(even) {
  --highlight: var(--accent2-raw);
}

.card.interactable {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card.interactable:focus-visible,
.card.interactable:hover {
  transform: translateY(-0.2rem);
  box-shadow:
    inset 0 0 0.2rem 0.08rem hsla(var(--highlight), 0.9),
    0 0 0.75rem rgba(0, 0, 0, 0.15);
}

.back {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--fg2);
  text-decoration: none;
}

.back:hover {
  color: var(--accent2);
}

/* ---------------------------------------------------------- stage */

.stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 120vh;
  min-height: 100vh;
  overflow: hidden;
  z-index: -10;
  --color: hsla(var(--page-hue), var(--page-sat), 75%, 0.2);
  background: linear-gradient(
    to bottom,
    hsl(var(--page-hue), var(--page-sat), 4%) 0%,
    hsl(var(--page-hue), var(--page-sat), 2%) 100%
  );
}

.stage__beam {
  position: absolute;
  inset: 0;
  top: -15vh;
  width: 100%;
  height: 100%;
  background:
    conic-gradient(at 50% 5%, transparent 30%, var(--color) 40%, var(--color) 60%, transparent 70%),
    50% -25px / 100% 100%;
  background-blend-mode: overlay;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 1;
  filter: blur(10px);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black 5%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 0%, black 5%, transparent 80%);
}

/* ---------------------------------------------------------- header */

header.card {
  display: flex;
  align-items: center;
  background: hsla(var(--bg2-raw), 0.4);
  backdrop-filter: blur(12px) saturate(1.4) brightness(0.8);
}

.logo {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 1.1rem;
  user-select: none;
}

.logo a,
.logo a:visited {
  text-decoration: none;
  color: var(--fg) !important;
}

.logo img {
  width: 4.25rem;
  height: 4.25rem;
  transition: filter 0.25s ease;
}

.logo img:hover,
.logo:has(h1:hover) img {
  filter: drop-shadow(0 0 0.25rem rgba(255, 255, 255, 0.5));
}

.logo h1 {
  display: inline;
  margin: 0;
  cursor: pointer;
}

.logo h1 span {
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.logo h1:hover span {
  color: var(--accent);
  text-shadow: 0 0 0.5rem hsla(var(--accent-raw), 0.75);
}

.logo h1:hover span.thin {
  color: var(--accent2);
  text-shadow: 0 0 0.5rem hsla(var(--accent2-raw), 0.75);
}

.logo .thin {
  font-weight: 400;
}

/* ---------------------------------------------------------- home */

#projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem;
}

#members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-height: 8rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.project-card .name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.project-card .description {
  margin: 0;
  font-size: 1rem;
  color: var(--fg2);
}

.member-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-height: 5rem;
  text-align: left;
  text-decoration: none !important;
}

.member-cell .avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 0.025rem rgba(255, 255, 255, 0.2);
}

.member-cell .name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg) !important;
  text-decoration: none !important;
}

footer.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-block: 1.66rem;
}

footer.card .logo img {
  width: 3rem;
  height: 3rem;
}

footer.card .logo h1 {
  font-size: 1.6rem;
}

footer.card .contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1rem;
  text-align: right;
}

footer.card .contact p {
  margin: 0;
}

footer.card .contact a {
  color: var(--accent2);
}

/* ---------------------------------------------------------- member */

.info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.pfp {
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

.info .details h2 {
  margin: 0;
}

.info .bio {
  color: var(--fg2);
  white-space: pre-line;
}

#profile-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.profile-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--fg);
}

.profile-link .title {
  font-family: var(--font-display);
  font-size: 0.9em;
  font-weight: 700;
  color: var(--fg2);
}

.profile-link .content {
  font-size: 0.95rem;
  color: var(--fg) !important;
  word-break: break-word;
}

/* ---------------------------------------------------------- project page */

.project-view .lede {
  color: var(--fg2);
  font-size: 1.1rem;
}

.project-view .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.project-view .actions a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  box-shadow: inset 0 0 0.075rem 0.075rem hsla(var(--fg2-raw), 0.18);
}

.project-view .actions a:hover {
  color: var(--accent2);
}

@media (max-width: 30rem) {
  article {
    padding: 0.9rem;
  }

  .logo {
    flex-direction: column;
    gap: 0.4rem;
  }

  .logo h1 {
    font-size: 2rem;
  }

  footer.card {
    flex-direction: column;
    align-items: flex-start;
  }

  footer.card .contact {
    text-align: left;
  }

  .info {
    flex-direction: column;
    align-items: flex-start;
  }
}
