/* JT King portfolio — measurements taken from the original Wix layout. */

:root {
  --font-display: "Anton", "Impact", sans-serif;
  --font-body: "Basic", "Trebuchet MS", sans-serif;
  --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--font-body);
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
ul { margin: 0; padding: 0; list-style: none; }
h2, p { margin: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: calc(100vh - 40px); /* a strip of the next section peeks in, as on the original */
  min-height: 440px;
  background: #000;
  clip-path: inset(0); /* keeps the fixed background inside the hero */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 17px;
}

.hero__bg {
  position: fixed;
  inset: 0;
  height: 100vh;
  opacity: 0.75;
}

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

.hero__content { position: relative; text-align: center; }

.hero__text {
  font: 400 28px/1.88 var(--font-display);
  color: #fff;
  margin-bottom: 21px;
}

.hero__text span { background: #000; }
.hero__text a { color: inherit; text-decoration: none; }

.social {
  display: flex;
  justify-content: center;
  gap: 35px;
}

.social img { width: 44px; height: 44px; }

/* ---------- Resume ---------- */

.resume {
  padding-top: 50px;
  display: flex;
  justify-content: center;
}

.resume__img {
  width: 534px;
  aspect-ratio: 534 / 703;
  object-fit: cover;
}

/* ---------- About ---------- */

.about {
  display: flex;
  padding: 60px;
}

.about__main {
  position: relative;
  flex: 0 0 67.34%;
  padding: 70px 20px 72px 111px;
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content {
  position: relative;
  max-width: 469px;
  color: #fff;
  font: 400 27px/1.4 var(--font-display);
}

.about__content span { background: #000; }

.about__heading {
  font: 700 56px/1.2 var(--font-heading);
  margin-bottom: 14px;
}

.about__intro { margin-bottom: 43px; }
.about__sub { text-align: center; margin-bottom: 41px; }

.about__list {
  list-style: disc;
  padding-left: 49px;
}

.about__list li + li { margin-top: 41px; }

.about__side {
  position: relative;
  flex: 1;
  background: #e8e6e6;
}

.about__portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Projects ---------- */

.wrap {
  width: min(980px, 100% - 40px);
  margin-inline: auto;
}

.project { padding: 67px 0 43px; }

.project__title {
  font: 700 56px/1.2 var(--font-heading);
  padding-left: 52px;
  margin-bottom: 26px;
}

.project--title-small { padding-top: 77px; }
.project--title-small .project__title {
  font: 400 33px/1.4 var(--font-display);
  padding-left: 22px;
  margin-bottom: 41px;
}

.project--title-large-centered { padding-top: 84px; }
.project--title-large-centered .project__title {
  text-align: center;
  padding-left: 0;
  margin-bottom: 24px;
}

.project__text { font-size: 25px; line-height: 1.4; }
.project__text--small { font-size: 22px; }
.project__text p + p { margin-top: 2px; }

/* ---------- Galleries ---------- */

.gallery {
  position: relative;
  margin: 39px 40px 0;
  padding: 40px 20px;
  /* card geometry, overridden per style */
  --img-w: 287px;
  --img-h: 323px;
  --card-w: 306px;
  --card-h: 355px;
  --gap: 20px;
  --cap-left: 32px;
  --cap-top: 282px;
  --cap-min: 48px;
  --cap-pad: 16px 4px 2px 13px;
}

.gallery__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--card-w));
  justify-content: center;
  gap: var(--gap);
  max-width: calc(var(--card-w) * 3 + var(--gap) * 2);
  margin-inline: auto;
}

.card {
  position: relative;
  width: var(--card-w);
  min-height: var(--card-h);
}

.card__img {
  width: var(--img-w);
  height: var(--img-h);
  object-fit: cover;
}

.card__caption {
  position: absolute;
  left: var(--cap-left);
  top: var(--cap-top);
  width: calc(var(--img-w) - var(--cap-left));
  min-height: var(--cap-min);
  padding: var(--cap-pad);
  background: #fff;
  font: 400 20px/1.4 var(--font-display);
}

/* Camaro: black-to-ice radial */
.gallery--radial {
  background: radial-gradient(circle, #000 15.06%, #e5f0fe 80.29%);
  padding: 66px 20px 44px;
  --img-w: 286px;
  --img-h: 335px;
  --card-w: 300px;
  --card-h: 412px;
  --gap: 14px;
  --cap-left: 31px;
  --cap-top: 274px;
  --cap-min: 60px;
  --cap-pad: 28px 2px 2px 18px;
}
.project--gallery-radial { padding-bottom: 70px; }

/* Fabrication: photo background */
.gallery--image {
  margin-top: 8px;
  background: rgba(232, 230, 230, 0.8);
}

/* Hail: dark diagonal gradient */
.gallery--dark {
  background: linear-gradient(111deg, rgba(0, 0, 0, 0.89) 39.91%, #c7c7c7 100%);
  --cap-left: 50px;
  --cap-top: 275px;
}

/* Mustang: photo left, caption on a colour wash */
.gallery--split {
  margin: 10px 0 0;
  padding: 0 20px;
  --card-w: 502px;
  --card-h: 344px;
  --img-w: 344px;
  --img-h: 344px;
  --gap: 40px;
}
.project--gallery-split { padding-bottom: 50px; }

.gallery--split .gallery__grid {
  max-width: calc(var(--card-w) * 2 + var(--gap));
}

.gallery--split .card {
  display: flex;
  background:
    radial-gradient(circle at 94.35% 89.62%, rgb(243, 167, 143) 0%, 20%, rgba(243, 167, 143, 0) 40%),
    radial-gradient(circle at 6.5% 88.04%, rgba(0, 87, 225, 0.99) 0%, 25%, rgba(0, 87, 225, 0) 50%),
    radial-gradient(circle at 6.17% 12.62%, rgb(237, 88, 41) 0%, 42%, rgba(237, 88, 41, 0) 70%),
    radial-gradient(circle at 93.69% 11.43%, rgb(128, 21, 232) 0%, 42%, rgba(128, 21, 232, 0) 70%),
    #fff;
}

.gallery--split .card__img { flex: none; }

.gallery--split .card__caption {
  position: static;
  width: auto;
  min-height: 0;
  padding: 51px 16px 0;
  background: none;
  font-size: 16px;
}

.gallery--split .card__caption span { background: #fff; }

/* ---------- Scroll reveal ---------- */

.js-reveal .reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.js-reveal .reveal.is-visible { opacity: 1; }

/* ---------- Mobile quick-action bar ---------- */

.quickbar { display: none; }

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .about { padding: 40px 20px; }
  .about__main { padding-left: 40px; }
  .gallery { margin-inline: 20px; }
  .gallery--split { margin-inline: 0; }
}

/* ---------- Phone ---------- */

@media (max-width: 750px) {
  body { padding-bottom: 64px; }

  .hero { padding-bottom: 45px; }
  .hero__text { font-size: 20px; }

  .resume { padding: 20px 20px 0; }
  .resume__img { width: 100%; }

  .about { flex-direction: column; padding: 60px 0; }
  .about__main { flex: none; padding: 20px 20px 20px; }
  .about__content { font-size: 23px; max-width: none; }
  .about__heading { font-size: 30px; margin-bottom: 9px; }
  .about__intro { margin-bottom: 32px; }
  .about__sub { margin-bottom: 33px; }
  .about__list { padding-left: 41px; }
  .about__list li + li { margin-top: 33px; }
  .about__side { flex: none; aspect-ratio: 320 / 277; }

  .project,
  .project--title-small,
  .project--title-large-centered { padding-top: 35px; }

  .project__title { font-size: 30px; padding-left: 0; margin-bottom: 20px; }
  .project--title-small .project__title { font-size: 23px; padding-left: 0; margin-bottom: 11px; }
  .project--title-large-centered .project__title { font-size: 35px; margin-bottom: 11px; }

  .project__text { font-size: 19px; }
  .project__text--small { font-size: 18px; }

  .gallery,
  .gallery--split { margin-inline: 0; padding-inline: 10px; }

  .gallery {
    --img-w: 258px;
    --img-h: 310px;
    --card-w: 276px;
    --card-h: 345px;
    --gap: 30px;
    --cap-top: 270px;
  }

  .gallery--radial {
    --img-w: 260px;
    --img-h: 290px;
    --card-w: 274px;
    --card-h: 360px;
    --cap-top: 236px;
  }

  .gallery--dark { --cap-top: 264px; }

  .card__caption { font-size: 18px; }

  .gallery--split {
    --card-w: 280px;
    --card-h: 0px;
    --img-w: 280px;
    --img-h: 185px;
    --gap: 40px;
  }
  .gallery--split .card { flex-direction: column; padding-bottom: 200px; }
  .gallery--split .card__caption { padding: 9px 11px 0; }

  .quickbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    height: 64px;
    background: #fff;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.15);
    font: 14px/1 var(--font-heading);
  }

  .quickbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #000;
    text-decoration: none;
  }
}
