:root {
  --bg: #211c31;
  --surface: #2b2440;
  --surface-2: #372d52;
  --text: #f6f2ec;
  --text-dim: #b7abc9;
  --line: #473c63;
  --gold: #e8a33d;
  --violet: #a091f2;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: var(--gold);
  color: #1c1204;
}
a {
  color: inherit;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.page {
  position: relative;
  z-index: 1;
}
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

header.site {
  padding: 28px 0;
}
header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  font-size: 14.5px;
  color: var(--text-dim);
}
.brand strong {
  color: var(--text);
  font-weight: 600;
}
nav.site a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-dim);
  margin-left: 28px;
  transition: color 0.15s ease;
}
nav.site a:hover {
  color: var(--gold);
}

.hero {
  padding: 100px 0 72px;
}
.hero h1 {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 55px);
  line-height: 1.15;
  max-width: 16ch;
  letter-spacing: -0.01em;
}
.hero .role-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 16px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  box-shadow: 0 0 0 0 rgba(232, 163, 61, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 163, 61, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(232, 163, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 163, 61, 0);
  }
}
.hero p.lede {
  margin-top: 28px;
  max-width: 56ch;
  font-size: 17px;
  color: var(--text-dim);
}
.hero .cta-row {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.btn.primary {
  background: var(--gold);
  color: #1c1204;
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgba(232, 163, 61, 0.6);
}
.btn.ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn.ghost:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
  color: var(--violet);
}

.stats {
  padding: 8px 0 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat b {
  font-family: "Source Serif 4", serif;
  font-size: 42px;
  font-weight: 600;
  color: var(--gold);
  display: block;
}
.stat span {
  font-size: 14px;
  color: var(--text-dim);
}

section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
section h2 {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
}
.about-grid p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 56ch;
}
.about-grid p + p {
  margin-top: 16px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.skill-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.skill-list li:first-child {
  padding-top: 0;
}
.skill-list .label {
  font-size: 13px;
  color: var(--violet);
  font-weight: 600;
}
.skill-list .value {
  font-size: 14.5px;
  color: var(--text);
}

.case {
  border-top: 1px solid var(--line);
}
.case:last-child {
  border-bottom: 1px solid var(--line);
}
.case-summary {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  -webkit-tap-highlight-color: transparent;
}
.case .num {
  font-family: "Source Serif 4", serif;
  color: var(--violet);
  font-size: 15px;
  flex: none;
  width: 28px;
}
.case h3 {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: 19px;
  flex: 1;
}
.case .toggle {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dim);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.case.open .toggle {
  transform: rotate(45deg);
  border-color: var(--gold);
  color: var(--gold);
}
.case-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.2s ease;
}
.case-body-inner {
  padding: 0 0 28px 48px;
}
.case-body-inner p {
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 60ch;
}

.case .tags {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.case .tags span {
  font-size: 12.5px;
  color: var(--gold);
  background: rgba(232, 163, 61, 0.1);
  border: 1px solid rgba(232, 163, 61, 0.28);
  padding: 4px 10px;
  border-radius: 20px;
}

footer.site {
  padding: 64px 0 80px;
}
footer.site h2 {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: 28px;
  max-width: 20ch;
  margin-bottom: 28px;
}
.contact-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 15px;
}
.contact-row a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.contact-row a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.fine {
  margin-top: 56px;
  font-size: 13px;
  color: var(--text-dim);
}

.error-page .center{
  flex:1;
  display:flex;
  align-items:center;
}
.error-page .center .wrap{
  text-align:left;
}
.error-page .code{
  font-family:'Source Serif 4', serif;
  font-weight:600;
  font-size:clamp(70px, 14vw, 140px);
  line-height:1;
  color:var(--gold);
  letter-spacing:-0.02em;
}
.error-page h1{
  font-family:'Source Serif 4', serif;
  font-weight:600;
  font-size:clamp(24px, 3.4vw, 32px);
  margin-top:12px;
  max-width:16ch;
}
.error-page p.lede{
  margin-top:16px;
  max-width:52ch;
  font-size:16px;
  color:var(--text-dim);
}
.error-page .cta-row{
  margin-top:32px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  nav.site a {
    margin-left: 16px;
  }
  .hero {
    padding: 64px 0 40px;
  }
  .case-body-inner {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .dot {
    animation: none;
  }
  .btn {
    transition: none;
  }
}
