* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(9, 18, 20, 0.74) 0%, rgba(9, 18, 20, 0.48) 45%, rgba(9, 18, 20, 0.16) 100%),
    url("./assets/silcapp-background.png") center / cover no-repeat;
  color: #f9fbf5;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button {
  font: inherit;
}

.landing {
  width: min(720px, calc(100% - 44px));
  margin-left: clamp(22px, 7vw, 112px);
  padding: 56px 0;
}

.label {
  margin: 0 0 14px;
  color: #e8c979;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.logo-title {
  margin: 0;
  line-height: 0;
}

.logo-title img {
  display: block;
  width: min(620px, 92vw);
  height: auto;
}

.summary {
  margin: 26px 0 0;
  max-width: 56ch;
  color: rgba(249, 251, 245, 0.9);
  font-size: clamp(1.05rem, 2.5vw, 1.22rem);
  line-height: 1.55;
}

.project-section {
  max-width: 620px;
  margin-top: 30px;
}

.project-section h2 {
  margin: 0 0 12px;
  color: rgba(249, 251, 245, 0.86);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 18, 21, 0.4);
  color: inherit;
  text-align: left;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.project-card-visual {
  display: grid;
  gap: 12px;
  padding: 10px;
}

.project-card-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(232, 201, 121, 0.75);
  background: rgba(8, 18, 21, 0.58);
  outline: none;
}

.projects strong,
.projects span {
  display: block;
}

.projects strong {
  font-size: 0.94rem;
}

.projects span {
  margin-top: 4px;
  color: rgba(249, 251, 245, 0.74);
  font-size: 0.9rem;
}

.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 36px 0 0;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(249, 251, 245, 0.34);
  border-radius: 8px;
  color: rgba(249, 251, 245, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(8, 18, 21, 0.34);
  backdrop-filter: blur(10px);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 10, 12, 0.74);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(780px, calc(100svh - 48px));
  overflow: auto;
  padding: 0 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(27, 42, 45, 0.98), rgba(12, 22, 25, 0.98)),
    rgba(15, 25, 28, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f9fbf5;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(232, 201, 121, 0.7);
  outline: none;
}

.modal-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.modal-kicker {
  margin: 26px 30px 8px;
  color: #e8c979;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal-panel h2 {
  margin: 0 30px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: 0;
}

.modal-summary {
  margin: 16px 30px 0;
  color: rgba(249, 251, 245, 0.82);
  line-height: 1.6;
}

.modal-points {
  display: grid;
  gap: 10px;
  margin: 22px 30px 0;
  padding: 18px 0 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(249, 251, 245, 0.84);
}

.modal-points li::marker {
  color: #e8c979;
}

@media (max-width: 720px) {
  body {
    align-items: end;
    background-position: 58% center;
  }

  .landing {
    margin: 0 auto;
    padding-bottom: 42px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 16px;
  }

  .modal-panel {
    max-height: calc(100svh - 32px);
  }

  .modal-image {
    aspect-ratio: 16 / 9;
  }

  .modal-kicker,
  .modal-panel h2,
  .modal-summary,
  .modal-points {
    margin-left: 22px;
    margin-right: 22px;
  }
}
