:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #edf5f7;
  --text: #16202e;
  --muted: #596779;
  --line: rgba(22, 32, 46, 0.13);
  --accent: #008f9c;
  --accent-2: #b98000;
  --shadow: rgba(17, 32, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 248, 251, 0.96) 58%),
    var(--bg) url("/assets/d2digital-urban.png") center top / cover no-repeat fixed;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hero {
  min-height: min(72vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: end;
  gap: 36px;
  padding: 40px 0 52px;
}

.hero__content {
  max-width: 720px;
  padding-bottom: 20px;
}

.hero__visual {
  order: 2;
  min-height: 430px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.16)),
    url("/assets/d2digital-urban.png") center / cover;
  box-shadow: 0 24px 64px var(--shadow);
  clip-path: polygon(10% 0, 100% 0, 88% 100%, 0 100%);
}

.eyebrow,
.project__label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 5.8vw, 5.6rem);
  line-height: 0.94;
  font-weight: 850;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: #334155;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.8;
}

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

.project {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 143, 156, 0.08), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: 0 18px 44px var(--shadow);
}

.project--quiz .project__label {
  color: var(--accent-2);
}

.project h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.project p:not(.project__label) {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.project__link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(22, 32, 46, 0.18);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.project__link:hover,
.project__link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(0, 143, 156, 0.1);
  outline: none;
}

.project--quiz .project__link:hover,
.project--quiz .project__link:focus-visible {
  border-color: var(--accent-2);
  background: rgba(185, 128, 0, 0.1);
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 28px, 680px);
    padding-top: 28px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 34px;
  }

  .hero__visual {
    order: -1;
    min-height: 270px;
    clip-path: none;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 5.4rem);
  }

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

  .project {
    min-height: 230px;
  }
}

@media (max-width: 460px) {
  .site-shell {
    width: calc(100% - 24px);
  }

  .hero__visual {
    min-height: 220px;
  }

  .project {
    padding: 22px;
  }

  .project__link {
    width: 100%;
    justify-content: center;
  }
}
