/* Colors and fonts, Netflix style.
   The names below are from the first version of the site. Only the values changed. */
:root {
  --deep:  #141414; /* page background */
  --steel: #181818; /* tiles and cards */
  --slate: #2F2F2F; /* lines, chips, depth */
  --dusk:  #6D6D6E; /* mid-grey, hover states */
  --terra: #E50914; /* red: your name, accents, progress bars */
  --ember: #B20710; /* darker red, used in gradients */
  --bone:  #FFFFFF; /* all text on dark backgrounds */
  --ash:   #A3A3A3; /* captions, dates */
  --avatar-recruiter: #0071EB; /* blue profile square */

  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Roboto, "Segoe UI", Arial, sans-serif;

  --gutter: 4vw;
  --nav-h: 68px;

  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; }

:focus-visible {
  outline: 3px solid var(--bone);
  outline-offset: 3px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.9), rgba(20, 20, 20, 0));
  transition: background-color 0.3s ease;
}
.nav.is-solid { background-color: var(--deep); }

.nav-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--terra);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex: 1;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--bone);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.is-active { opacity: 1; font-weight: 700; }

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  flex: none;
}

/* ---------- Avatars ---------- */
.avatar {
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
}
.avatar svg { width: 78%; height: 78%; }
.avatar--recruiter { background: var(--avatar-recruiter); }
.avatar--friend { background: var(--terra); }

/* ---------- Screen 1: Intro ---------- */
.intro {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #1f1f1f 0%, var(--deep) 70%);
}

.intro-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 24px;
  text-align: center;
}
.intro-btn:focus-visible { outline: 3px solid var(--bone); outline-offset: 6px; }

.intro-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 15vw, 180px);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: var(--terra);
  animation: introIn 1s ease-out both;
}

.intro-hint {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  animation: hintPulse 2.4s ease-in-out 1s infinite;
}

.intro.is-entering .intro-name { animation: introOut 1.5s ease-in forwards; }
.intro.is-entering .intro-hint { animation: fadeOut 0.3s ease forwards; }

@keyframes introIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes introOut {
  0%   { transform: scale(1); text-shadow: 0 0 0 rgba(229, 9, 20, 0); opacity: 1; }
  45%  { transform: scale(1.12); text-shadow: 0 0 28px rgba(229, 9, 20, 0.9), 0 0 80px rgba(178, 7, 16, 0.7); color: var(--terra); opacity: 1; }
  100% { transform: scale(1.7); text-shadow: 0 0 60px rgba(229, 9, 20, 0.6); opacity: 0; }
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes fadeOut { to { opacity: 0; } }

/* ---------- Screen 2: Who's Watching? ---------- */
.who {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  animation: fadeIn 0.5s ease both;
}

.who-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 0.02em;
  margin: 0 0 40px;
  text-align: center;
}

.profiles {
  display: flex;
  gap: clamp(20px, 5vw, 48px);
  justify-content: center;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ash);
}
.profile .avatar {
  width: clamp(120px, 16vw, 180px);
  aspect-ratio: 1;
  border: 3px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.profile-name { font-size: clamp(16px, 2vw, 22px); transition: color 0.2s; }
.profile:hover .avatar,
.profile:focus-visible .avatar { transform: scale(1.06); border-color: var(--bone); }
.profile:hover .profile-name,
.profile:focus-visible .profile-name { color: var(--bone); }
.profile:focus-visible { outline: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Screen 3: Home ---------- */
.home { padding-bottom: 60px; animation: fadeIn 0.4s ease both; }

.hero {
  position: relative;
  min-height: min(82vh, 700px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* Fallback if the GIF does not load */
  background: linear-gradient(135deg, var(--steel) 0%, var(--slate) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20, 20, 20, 0.92) 0%, rgba(20, 20, 20, 0.6) 45%, rgba(20, 20, 20, 0.1) 100%),
    linear-gradient(to top, var(--deep) 0%, rgba(20, 20, 20, 0) 40%);
}
.hero-content {
  position: relative;
  max-width: 660px;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 56px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.95;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.hero-meta {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bone);
}
.hero-bio {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(20, 20, 20, 0.8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px 11px 20px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.btn svg { width: 22px; height: 22px; }
.btn-play { background: var(--bone); color: var(--deep); }
.btn-play:hover { background: #ffffff; }
.btn-info { background: rgba(109, 109, 110, 0.45); color: var(--bone); }
.btn-info:hover { background: rgba(109, 109, 110, 0.3); }

/* Rows of tiles */
.row { margin-top: 28px; }
.row-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin: 0 0 4px;
  padding: 0 var(--gutter);
}
.row-sub {
  margin: 0;
  padding: 0 var(--gutter);
  color: var(--ash);
  font-size: 15px;
}
.row-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px var(--gutter) 22px;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--slate) transparent;
}
.row-track > * { scroll-snap-align: start; flex: none; }

/* Tiles: wide 16:9 cards */
.tile {
  position: relative;
  width: clamp(250px, 26vw, 380px);
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6%;
  overflow: hidden;
  text-decoration: none;
  color: var(--bone);
  transition: transform 0.25s ease, filter 0.25s ease;
}
a.tile:hover,
a.tile:focus-visible { transform: scale(1.05); filter: brightness(1.18); z-index: 1; }

.tile-label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(20, 20, 20, 0.75);
}
.tile-label small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.tile--resume {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 22px),
    linear-gradient(120deg, var(--steel) 0%, var(--slate) 60%, var(--terra) 140%);
}
/* Small round photo on a tile. It sits to the left of the label. */
.tile-face {
  position: relative;
  flex: none;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 55% 40%;
  border: 3px solid var(--bone);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.tile--skills {
  background:
    radial-gradient(circle at 80% 20%, rgba(229, 9, 20, 0.75) 0 18%, transparent 19%),
    radial-gradient(circle at 15% 85%, rgba(109, 109, 110, 0.9) 0 26%, transparent 27%),
    linear-gradient(160deg, var(--slate), var(--steel));
}
.tile--portfolio {
  background:
    linear-gradient(115deg, transparent 0 55%, rgba(20, 20, 20, 0.35) 55% 100%),
    linear-gradient(135deg, var(--terra) 0%, var(--ember) 100%);
}
.tile--life {
  background:
    linear-gradient(to top, var(--deep) 0 18%, transparent 18%),
    radial-gradient(circle at 90% 18%, var(--ember) 0 9%, transparent 10%),
    linear-gradient(to bottom, var(--slate), var(--dusk));
}
.tile--hi {
  background:
    radial-gradient(circle at 20% 30%, rgba(178, 7, 16, 0.9) 0 16%, transparent 17%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.15) 0 22%, transparent 23%),
    linear-gradient(140deg, var(--dusk), var(--steel));
}
.tile--soon {
  background: linear-gradient(135deg, var(--steel), #222222);
  color: var(--ash);
}
.tile--soon-2 { background: linear-gradient(135deg, #222222, var(--slate)); }
.tile--soon .tile-label { color: var(--ash); font-size: clamp(24px, 2.4vw, 32px); }

.progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 4px;
  border-radius: 2px;
  background: rgba(109, 109, 110, 0.35);
  overflow: hidden;
}
.progress > span { display: block; height: 100%; background: var(--terra); }

/* ---------- Pages: Resume, Skills, Portfolio ---------- */
.page {
  padding: calc(var(--nav-h) + 32px) 0 72px;
  animation: fadeIn 0.4s ease both;
}
.page-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page--wide .page-inner { max-width: none; margin: 0; }

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 0.95;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.page-lede {
  max-width: 680px;
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--bone);
  opacity: 0.9;
}

/* Resume */
.resume-head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--slate);
}
.resume-contact { margin: 0 0 20px; color: var(--ash); font-size: 15px; }
.resume-contact a { color: var(--bone); }

.resume-section { padding: 28px 0 4px; border-bottom: 1px solid var(--steel); }
.resume-section:last-child { border-bottom: 0; }
.resume-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 14px;
}
.resume-section p { margin: 0 0 16px; }

.job { margin: 0 0 28px; }
.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.job h3 { margin: 0; font-size: 19px; font-weight: 700; }
.job h3 span { font-weight: 400; color: var(--ash); }
.job h3 span::before { content: "| "; color: var(--ash); }
.job-dates { margin: 0 !important; color: var(--ash); font-size: 15px; font-variant-numeric: tabular-nums; }
.job-note { margin: 2px 0 10px !important; color: var(--ash); font-size: 14px; font-style: italic; }
.job ul { margin: 0; padding-left: 20px; }
.job li { margin-bottom: 8px; }
.job li::marker { color: var(--terra); }

.text-link { color: var(--bone); font-weight: 600; text-underline-offset: 3px; }

/* Skills */
.skill-group { margin-top: 32px; }
.skill-group h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 14px;
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--steel);
  border: 1px solid var(--slate);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s;
}
.chips li:hover { background: var(--slate); border-color: var(--dusk); }

/* Portfolio cards */
.card {
  width: clamp(270px, 29vw, 400px);
  text-decoration: none;
  color: var(--bone);
  transition: transform 0.25s ease;
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  transition: filter 0.25s ease;
}
.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Add thumb-top to a card-thumb to keep the top of a tall image in view */
.thumb-top img { object-position: top; }
/* Add thumb-fit to show a very wide image in full, with dark bars instead of cropping */
.card-thumb.thumb-fit { background: #000; }
.thumb-fit img { object-fit: contain; }
/* Play button over a thumbnail. Add <span class="play-badge"> inside any card-thumb. */
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(20, 20, 20, 0.55);
  color: var(--bone);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.play-badge svg { width: 30px; height: 30px; margin-left: 4px; }
.card:hover .play-badge,
.card:focus-visible .play-badge {
  transform: scale(1.1);
  background: var(--bone);
  color: var(--deep);
}

.card:hover,
.card:focus-visible { transform: scale(1.03); }
.card:hover .card-thumb,
.card:focus-visible .card-thumb { filter: brightness(1.15); }
.card-title { margin: 12px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.card-desc { margin: 0; font-size: 15px; color: var(--ash); line-height: 1.5; }

/* Placeholder art shown until you add a picture to images/ */
.thumb-1  { background: linear-gradient(135deg, var(--terra), var(--steel)); }
.thumb-2  { background: linear-gradient(135deg, var(--slate), var(--ember)); }
.thumb-3  { background: linear-gradient(135deg, var(--steel), var(--terra)); }
.thumb-4  { background: linear-gradient(135deg, var(--dusk), var(--steel)); }
.thumb-5  { background: linear-gradient(135deg, var(--slate), var(--dusk)); }
.thumb-6  { background: linear-gradient(135deg, var(--ember), var(--slate)); }
.thumb-7  { background: linear-gradient(135deg, var(--terra), var(--slate)); }
.thumb-8  { background: linear-gradient(135deg, var(--steel), var(--dusk)); }
.thumb-9  { background: linear-gradient(135deg, var(--dusk), var(--terra)); }
.thumb-10 { background: linear-gradient(135deg, var(--slate), var(--deep)); }

/* ---------- Contact form pop-up ---------- */
button.btn { border: 0; cursor: pointer; font-family: inherit; }

.contact {
  width: min(480px, calc(100vw - 32px));
  padding: 32px 28px 24px;
  border: 1px solid var(--slate);
  border-radius: 8px;
  background: var(--steel);
  color: var(--bone);
}
.contact::backdrop { background: rgba(0, 0, 0, 0.7); }
.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
.contact-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bone);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.contact-close:hover { background: var(--slate); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--ash); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--dusk);
  border-radius: 4px;
  background: var(--deep);
  color: var(--bone);
  font: inherit;
  font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--bone); outline-offset: 0; border-color: var(--bone); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; padding-left: 28px; padding-right: 28px; }
.contact-hp { position: absolute; left: -9999px; }
.contact-status { margin: 0; min-height: 1.5em; font-size: 15px; }

/* ---------- Phone sizes ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 60px; }

  .nav { gap: 14px; }
  .nav-brand { font-size: 22px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .nav-avatar { width: 30px; height: 30px; }

  .hero { min-height: 0; }
  .hero-content { padding-top: calc(var(--nav-h) + 120px); padding-bottom: 32px; }
  .hero-shade {
    background:
      linear-gradient(to top, var(--deep) 0%, rgba(20, 20, 20, 0.85) 55%, rgba(20, 20, 20, 0.3) 100%);
  }
  .hero-bio { font-size: 15px; }
  .btn { padding: 10px 18px 10px 14px; font-size: 16px; }

  .tile { width: 72vw; }
  .card { width: 78vw; }
  .profile .avatar { width: 130px; }
}

@media (max-width: 360px) {
  .nav-brand { font-size: 19px; }
  .nav-links { gap: 10px; }
}

/* Skip animations for people who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
