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

:root {
  --c2: #8E735B;
  --mono: 'Space Mono', monospace;
}

html, body { min-height: 100%; width: 100%; }

body {
  font-family: var(--mono);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4rem 1.5rem 5rem;
  position: relative;
}

/* Fixed gradient via pseudo-element — iOS Safari compatible */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg,
    #000000 0%,
    #1a120d 20%,
    #3C2A21 40%,
    #6b5040 60%,
    #8E735B 80%,
    #a08570 100%
  );
}

/* Grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("grain.svg");
  opacity: 0.35;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
}

.binary {
  font-size: clamp(0.5rem, 1.8vw, 0.6rem);
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
  margin-bottom: 2rem;
  animation: fadeIn 1s ease 0.2s both;
  -webkit-user-select: none;
  user-select: none;
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 1.75rem 0;
  animation: expandWidth 1.2s ease 0.4s both;
  transform-origin: left;
}

@keyframes expandWidth {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.label {
  font-size: clamp(0.5rem, 2vw, 0.65rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  animation: fadeIn 1s ease 0.3s both;
}

.name {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.6rem 0 0.5rem;
  animation: fadeInUp 1s ease 0.5s both;
}

.role {
  font-size: clamp(0.5rem, 2vw, 0.65rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  animation: fadeIn 1s ease 0.7s both;
  line-height: 2;
}

.role .dot { color: var(--c2); }

.status-block { animation: fadeIn 1s ease 0.9s both; }

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.48rem, 1.8vw, 0.6rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.4rem 0.75rem;
  margin-bottom: 1rem;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c2);
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.status-message {
  font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  font-style: italic;
  color: rgba(255,255,255,0.45);
  line-height: 1.9;
}

.projects-section { animation: fadeIn 1s ease 1s both; }
.projects-section.other-projects { margin-top: 1.75rem; }

.section-label {
  font-size: clamp(0.48rem, 1.8vw, 0.58rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 0.9rem;
}

.project-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.7);
  font-size: clamp(0.58rem, 2vw, 0.7rem);
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.project-btn:hover,
.project-btn:active {
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
  background: rgba(255,255,255,0.04);
}

.project-btn-name {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.project-btn-sub {
  font-size: clamp(0.48rem, 1.5vw, 0.55rem);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.project-btn-arrow {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.project-btn:hover .project-btn-arrow {
  transform: translateX(3px);
  color: rgba(255,255,255,0.5);
}

.project-btn.featured {
  border-color: var(--c2);
  background: rgba(142,115,91,0.15);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(142,115,91,0.15), inset 0 0 12px rgba(142,115,91,0.06);
}

.project-btn.featured .project-btn-sub {
  color: rgba(255,255,255,0.45);
}

.project-btn.featured .project-btn-arrow {
  color: var(--c2);
}

.project-btn.featured:hover,
.project-btn.featured:active {
  border-color: #a08570;
  background: rgba(142,115,91,0.22);
  box-shadow: 0 0 18px rgba(142,115,91,0.25), inset 0 0 14px rgba(142,115,91,0.08);
}

.project-btn.featured:hover .project-btn-arrow {
  color: #a08570;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: fadeIn 1s ease 1.2s both;
}

.contact-block p {
  font-size: clamp(0.58rem, 2vw, 0.7rem);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-block p::before {
  content: '—';
  color: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.contact-block a {
  font-size: clamp(0.58rem, 2vw, 0.7rem);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.2s ease;
}

.contact-block a::before {
  content: '—';
  color: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.contact-block a:hover,
.contact-block a:active { color: rgba(255,255,255,0.75); }

.version {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.3rem 0.55rem;
  z-index: 1;
  line-height: 1.4;
  text-align: center;
}

.version span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
  body {
    justify-content: flex-start;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
  }
}
