:root {
  --bg: #1C1622;
  --surface: #2A2131;
  --border: #4E405A;
  --text: #F2EDE4;
  --muted: #A89FAF;
  --red: #E5484D;
  --gold: #D4A657;
  color-scheme: dark;
}

html { scroll-snap-type: y mandatory; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 "Inter", system-ui, sans-serif;
}

/* every section: full screen, snaps, centred content */
section {
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  padding: 0 1rem;
}
section h2 { margin: 0 0 1.5rem; }
.about-part, .skills-inner, .contact-inner {
  width: 100%;
  max-width: 65ch;
  margin: auto;
}

/* hero */
.hero { align-items: center; position: relative; overflow: hidden; }
.hero > :not(.hero-cutout) { position: relative; z-index: 1; }
.hero-cutout {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(260px, 32vw, 520px);
  height: auto;
  pointer-events: none;
}
.hero-cutout--small { width: clamp(260px, 32vw, 520px); right: 0; }
.hero-cutout--big { width: 60vw; right: -15vw; }

.hero .hero-cutout {
  position: fixed;
  animation: fade-out linear both;
  animation-timeline: scroll();
  animation-range: 0 100svh;
}
@keyframes fade-out { to { opacity: 0; } }

.name {
  margin: 0;
  font: 400 clamp(3rem, min(17vw, 26svh), 16rem)/0.92 "Zen Tokyo Zoo", sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
}
.name span { display: block; }
.first { font-size: 1.02em; }
.last  { color: var(--red); font-size: 1.25em; }

.tagline {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  color: var(--gold);
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* about */
.about p { margin: 0 0 1em; }
.about-computer { display: none; }

/* skills */
.skill-group { margin-bottom: 1.25rem; }
.skill-group h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* tag lists and contact buttons share one style */
.tags, .contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tags li, .contact-links a {
  border: 1px solid;
  color: var(--gold);
}
.tags li { padding: 0.2rem 0.65rem; border-radius: 10px; font-size: 0.85rem; }

/* contact */
.contact { position: relative; overflow: hidden; }
.contact-inner { position: relative; z-index: 1; }

.contact-email {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: clamp(1.25rem, 5vw, 2.25rem);
  font-weight: 600;
  color: var(--red);
  word-break: break-all;
}
.contact-links { gap: 0.75rem; margin-bottom: 1.5rem; }
.contact-links a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
}
.contact-links a:hover { background: var(--gold); color: var(--bg); }
.contact-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.resume { display: none; } /* no resume ready yet, I'll display it when ready */

/* phone */
@media (max-width: 767px) {
  .tagline span { display: block; }
  .tagline .sep { display: none; }

  .hero-cutout--big { width: 80vw; right: -15vw; }
  .hero-cutout--small { display: none; }
}

/* laptop */
@media (min-width: 1024px) {
  .hero { padding-left: 3rem; }

  .about-part, .skills-inner {
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
  .skills-inner h2 { grid-column: 1 / -1; }

  .about-left { display: contents; }
  .about-part h2, .about .lead, .about .about-computer { grid-column: 1; }
  .about-right { grid-column: 2; grid-row: 2 / span 2; }
  .about .about-computer {
    display: block;
    width: min(100%, 40svh);
    height: auto;
    margin-top: 1.5rem;
  }
}