:root {
  color-scheme: dark;
  --bg: #060606;
  --fg: #ffffff;
  --muted: #c5c5c5;
  --accent: #ececec;
  --border: #2b2b2b;
  --section-gap: clamp(4rem, 10vw, 7rem);
  --column-gap: clamp(1.5rem, 4vw, 3.5rem);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'PT Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.resume {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding: 0;
}

.section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--column-gap);
  row-gap: 1.5rem;
  align-items: start;
}

.section__text {
  grid-column: 1 / span 4;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: flex-start;
}

.section__media {
  grid-column: 7 / -1;
  align-self: stretch;
}
.hero {
  padding: 2em;
}
.hero__name {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans', 'PT Sans', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero__name span {
  display: block;
}

.hero__tagline {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  /* border: 1px solid var(--border); */
  /* background: rgba(255, 255, 255, 0.04); */
  font-size: clamp(0.7rem, 1vw, 0.85rem);
}

.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder--portrait {
  min-height: clamp(620px, 70vw, 960px);
  background-image: url('assets/26D.png');
  background-size: cover;
  background-position: center;
}

.placeholder--forks {
  min-height: clamp(160px, 28vw, 260px);
}

.placeholder--tv {
  padding: clamp(1.5rem, 3vw, 3rem);
  border-color: transparent;
  background: none;
}

.experience__title {
  font-family:'PT Serif', serif;
  margin: 0;
  font-size: clamp(2.25rem, 3.3vw, 4rem);
  line-height: 1;
  font-weight: 400;
}

.hand {
  font-family: 'Homemade Apple', cursive;
}

.experience__org {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.25rem);
  line-height: 1;
  text-transform: uppercase;
  color: #c5c5c5;
}
.experience__org  a {
  color: #c5c5c5;
}
.experience__org  a.bpacks {
  display: block;
  position: relative;
}
.experience__org  a.bpacks::before {
  content: ' ';
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  position: absolute;
  top: 0;bottom: 0;left: -1.1em;right: 100%;
  background-image: url('assets/bpacks-logo-white.png');
  width: 1em;
  height: 1em;
}
.experience__body {
  margin: 0;
  font-family: 'PT Sans', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.65;
  color: var(--accent);
  max-width: 58ch;
  text-wrap: pretty;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: 'liga' 1, 'kern' 1;
  hanging-punctuation: first;
}

.experience__body + .experience__body {
  margin-top: 1.1rem;
}

.experience__body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.18em;
}

.experience__body a:hover,
.experience__body a:focus-visible {
  text-decoration-color: currentColor;
}

.education {
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.education__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.education__degree {
  font-family:'PT Serif', serif;
  margin: 0;
  font-size: clamp(2.25rem, 3.3vw, 3.3rem);
  line-height: 1;
  font-weight: 400;
}

.education__details {
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.1;
  color: var(--fg);
}

/* Section layout overrides */
.section--hero {
  position: relative;
}

.section--hero .section__text {
  grid-column: 1 / span 4;
}

.section--hero .section__media {
  grid-column: 6 / -1;
}
.section--lead {
  align-items: center;
}
.section--lead .section__text {
  grid-column: 4 / span 4;
}
.section--lead .section__media {
  grid-column: 9 / span 3;
}

.section--director {
  align-items: center;
}
.section--director .section__media {
  grid-column: 1 / span 5;
}
.section--director .section__text {
  grid-column: 6 / span 5;
}

.section--senior .section__text {
  grid-column: 3 / span 5;
}

/* .section--senior .section__media {
  grid-column: 7 / span 6;
} */

.section--education {
  align-items: center;
}
.section--education .section__media {
  grid-column: 2 / span 5;
}

.section--education .section__text {
  grid-column: 7 / span 4;
}
.section--social {
  padding-bottom: 4em;
}
.section--social .section__text {
  grid-column: 2 / span 6;
}

.rhe-preview__image {
  width: 100%;
  object-fit: contain;
  margin: -15% 0;
}

.social {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.social__title {
  margin: 0;
  font-family: 'PT Serif', serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 3vw, 2.25rem);
}

.social__description {
  margin: 0;
  max-width: 38ch;
  color: var(--accent);
}

.social__email {
  margin: 0;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}

.social__email a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

.social__email a:hover,
.social__email a:focus-visible {
  border-bottom-color: var(--accent);
  outline: none;
}

.social__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 1.8vw, 0.85rem);
}

.social__item {
  margin: 0;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 4vw, 3rem);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.social__link:hover,
.social__link:focus-visible {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  outline: none;
}

.social__icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.social__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(9rem, 28vw, 12rem);
  aspect-ratio: 1;
  border-radius: 50%;
 /* border: 1px solid var(--border); */
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
  text-decoration: none;
  color: var(--accent);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.social__preview::after {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
 /* border: 1px dashed rgba(255, 255, 255, 0.15);*/
}

.social__preview:hover,
.social__preview:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border-color: var(--accent);
  outline: none;
}

.social__preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(1.1);
}

.social__preview--hero {
  position: absolute;
  left: clamp(1.5rem, 6vw, 3rem);
  bottom: clamp(4.5rem, 7vw, 5rem);
  z-index: 3;
}

.section--social .section__media {
  grid-column: 3 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(4.5rem, 12vw, 6rem);
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.qr-preview:hover,
.qr-preview:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  outline: none;
}

.qr-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.placeholder--tv {
  justify-self: end;
}
.placeholder--tv img {
  min-width: 200px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .section {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .section__text,
  .section__media {
    grid-column: 1 / -1;
  }

  .section--hero .section__text {
    grid-column: 1 / span 3;
  }

  .section--hero .section__media {
    grid-column: 4 / -1;
  }

  .social__preview--hero {
    left: clamp(1.25rem, 1vw, 2rem);
    bottom: clamp(1.5rem, 6vw, 2.75rem);
  }

  .section--social .section__text {
    grid-column: 1 / -1;
  }


  .section--director .section__text,
  .section--senior .section__text,
  .section--education .section__media,
  .section--education .section__text,
  .section--lead .section__media, 
  .section--senior .section__media,
  .section--senior .section__text {
    grid-column: 2 / 6;
  }
.section--director .section__media {
  grid-column: 1 / span 6;
}

  .placeholder--portrait {
    min-height: clamp(460px, 90vw, 680px);
  }

  .experience__body {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .resume {
    gap: clamp(2.5rem, 14vw, 3.75rem);
  }

  .section--hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: clamp(1.5rem, 6vw, 2.5rem);
    padding-block: clamp(2.5rem, 12vw, 4rem);
  }

  .section--hero .section__text {
    padding-inline: clamp(1.5rem, 6vw, 2.5rem);
    justify-content: flex-end;
  }

  .section--hero .section__media {
    flex: 1 1 auto;
    display: flex;
  }

  .section--hero .placeholder--portrait {
    flex: 1 1 auto;
    min-height: clamp(18rem, 58vh, 28rem);
  }

  .hero {
    padding: 0;
  }

  .hero__name {
    font-size: clamp(2.75rem, 12vw, 3.75rem);
  }

  .hero__tagline {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .social__preview--hero {
    position: absolute;
    width: clamp(6.5rem, 38vw, 8.75rem);
    height: clamp(6.5rem, 38vw, 8.75rem);;
    aspect-ratio: 1;
    left: inherit;
    /* right: clamp(1.25rem, 0.5vw, 2.25rem); */
    /* top: clamp(3.25rem, 19vw, 4.45rem); */
    right:0;
    top:7%;
    margin: 0;
    transform: translateY(-50%);
    z-index: 4;
  }

  .section--social .section__text {
    grid-column: 1 / -1;
  }

  .section--social .social {
    margin-inline: auto;
    text-align: center;
    align-items: center;
  }

  .section--social .social__email,
  .section--social .social__list {
    justify-content: center;
    text-align: center;
  }

  .section--social .section__media {
    justify-content: flex-start;
  }

  .qr-preview {
    width: clamp(3rem, 30vw, 7rem);
  }

  /*.section--lead .section__media,*/
  .section--lead .section__text {
    grid-column: 2 / 6;
  }

  .section--lead .section__media, 
  .section--senior .section__media {
    grid-column: 1 / 7;
    grid-row: 1;
  }

  .section--lead .section__text,
  .section--senior .section__text {
    grid-row: 2;
  }
}
