@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: #161616;
  background: #fff;
  font-synthesis: none;
  --muted: #4d4d4d;
  --line: #dedede;
}

* { box-sizing: border-box; }
body { margin: 0; }
p, h1, h2, h3 { margin: 0; }

.portfolio {
  width: min(100% - 64px, 780px);
  margin-inline: auto;
  padding-block: clamp(56px, 7vw, 104px) 76px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 30px;
}

.avatar {
  display: block;
  flex: 0 0 auto;
  width: clamp(118px, 17vw, 156px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f5f5f5;
}

.profile-title {
  font-size: clamp(1.375rem, 3.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.profile-details {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.profile-details li {
  display: flex;
  align-items: center;
  gap: 11px;
}

.icon {
  display: block;
  flex: none;
  object-fit: contain;
}

h1 {
  margin-top: 43px;
  font-size: clamp(2.125rem, 8.4vw, 5rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.intro-availability {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.5;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.contact {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #161616;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.contact-primary {
  border-color: #161616;
  background: #161616;
  color: #fff;
}

.contact-primary .icon { filter: invert(1); }
.contact:hover { background: #f3f3f3; }
.contact-primary:hover { background: #333; }
a:focus-visible { outline: 2px solid #161616; outline-offset: 4px; }

.intro-video {
  width: min(100%, 224px);
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.intro-video figcaption {
  display: grid;
  min-height: 52px;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}

.video-stage { position: relative; }

.intro-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #161616;
}

.video-start,
.video-controls button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.video-start {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.video-play-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 20px #0005;
}

.video-start:hover .video-play-icon { background: #eee; }
.video-start img { margin-left: 3px; }

.video-controls {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 4px;
}

.video-controls button {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff;
}

.video-controls button:hover { background: #f1f1f1; }

.video-controls input {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  margin: 0 3px;
  accent-color: #161616;
  cursor: pointer;
}

.intro-video :is(button, input):focus-visible {
  outline: 2px solid #161616;
  outline-offset: -3px;
}

.video-start:focus-visible .video-play-icon {
  outline: 2px solid #161616;
  outline-offset: -5px;
}

.intro-video [hidden] { display: none; }

.intro-video:fullscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: #161616;
}

.intro-video:fullscreen .video-stage { flex: 1; min-height: 0; }
.intro-video:fullscreen video { height: 100%; object-fit: contain; }
.intro-video:fullscreen .video-controls { width: min(100%, 480px); border-radius: 12px 12px 0 0; background: #fff; }

@media (min-width: 740px) {
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 224px;
    align-items: center;
    gap: 32px;
  }

  .intro h1 { font-size: clamp(3.25rem, 7vw, 4.375rem); }
  .intro-video { margin: 0; }
}

.experience {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.experience h2 {
  font-size: clamp(1.75rem, 4.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.experience-entry {
  display: grid;
  gap: 16px 24px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.experience h2 + .experience-entry { margin-top: 20px; }

.experience-copy h3 {
  font-size: clamp(1.375rem, 3.4vw, 1.625rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.experience-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.views {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #161616;
  color: #fff;
}

.views-number {
  font-size: clamp(2.125rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
}

.views-label {
  color: #ececec;
  font-size: 18px;
  line-height: 1.3;
}

.work-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}

.work-link {
  display: flex;
  min-height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.work-link + .work-link { border-left: 1px solid var(--line); }
.work-link:hover { background: #f1f1f1; }
.work-link:focus-visible { outline-offset: -4px; }

.slideshow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slideshow li {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e8ede3;
}

.slideshow:focus-visible { outline: 2px solid #161616; outline-offset: 4px; }

.slideshow img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 680px) {
  .lifesteal {
    grid-template-columns: minmax(0, 1fr) 184px;
    align-items: center;
  }

  .views {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    align-self: stretch;
    padding: 20px;
  }

  .work-links { grid-column: 1; }
  .work-link { flex-direction: row; gap: 8px; }
}

@media (max-width: 600px) {
  .portfolio {
    width: calc(100% - 40px);
    padding-block: 38px 45px;
  }

  .profile { gap: 18px; }
  .profile-details { gap: 7px; font-size: 18px; }
  .profile-details li { gap: 9px; }
  .profile-details .icon { width: 17px; height: 17px; }
  .avatar { width: clamp(94px, 27vw, 135px); }

  h1 { margin-top: 34px; font-size: clamp(2.125rem, 10.7vw, 3.75rem); }
  .contact-links { margin-top: 22px; }
  .contact { flex: 1 0 auto; padding-inline: 12px; }

  .experience { margin-top: 36px; padding-top: 24px; }
  .experience-entry { padding: 16px; }

  .slideshow {
    grid-template-columns: none;
    grid-auto-columns: min(76%, 240px);
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .slideshow li { scroll-snap-align: start; }
}

@media (max-width: 360px) {
  .portfolio { width: calc(100% - 32px); }
  .profile { gap: 13px; }
  .contact-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .work-links { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.15fr); }
}
