:root {
  --black: #000;
  --panel: #1b1b1b;
  --white: #fff;
  --muted: #fff;
  --red: #ff2143;
  --purple: #bd4dff;
  --cyan: #08d5e8;
  --home-section-space: clamp(4rem, 8vw, 7rem);
  --home-section-space-mobile: clamp(5.5rem, 17vw, 7rem);
  --display: "Oxanium", "Arial Narrow", sans-serif;
  --body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-width {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

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

/* Buttons used by the home page sections. */
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: .65rem .9rem;
  font: 600 1rem var(--display);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s, filter .18s;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

.button-red {
  background: var(--red);
  color: white;
}

.button-light {
  background: white;
  color: #111;
  text-transform: none;
}

.button-purple {
  background: var(--purple);
  color: white;
}

.button-cyan {
  background: var(--cyan);
  color: var(--black);
}

/* Hero */
.hero {
  width: 100%;
  min-height: clamp(558px, 72vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: var(--home-section-space);
  padding-block: 0;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: auto;
  max-width: 40rem;
  min-width: 0;
  margin-left: clamp(1.5rem, 7vw, 6rem);
  padding-right: clamp(.5rem, 2vw, 1.5rem);
}

.hero h1 {
  margin: 0 0 1.5rem;
  color: var(--red);
  font: 700 clamp(3.8rem, 6vw, 5.5rem)/1.06 var(--display);
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.15;
}

.hero-description {
  max-width: 700px;
  margin: 0;
  font-size: clamp(1.2rem, 1.85vw, 1.45rem);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.5rem;
}

.hero-art {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 65vw;
  height: clamp(580px, 45vw, 1000px);
  justify-self: end;
  align-self: start;
}

.hero-art::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--black) 0%,
      var(--black) 23%,
      rgb(0 0 0 / 50%) 26%,
      transparent 28%
    ),
    linear-gradient(
      0deg,
      var(--black) 0%,
      rgb(0 0 0 / 40%) 7%,
      rgb(0 0 0 / 12%) 20%,
      transparent 34%
    );
  content: "";
  pointer-events: none;
}

/* Image placeholders */
.media-slot {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: conic-gradient(
    #e8e8e8 25%,
    #f7f7f7 0 50%,
    #e8e8e8 0 75%,
    #f7f7f7 0
  ) 0 0 / 44px 44px;
}

.media-slot img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-slot img.is-missing {
  display: none;
}

.media-caption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 2.25rem 1rem .9rem;
  background: linear-gradient(transparent, #000b);
  color: white;
  font: 600 1rem var(--display);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.media-slot.has-image:not(.featured-tile) .media-caption {
  display: none;
}

/* Featured work and full-width moving dividers */
.featured {
  position: relative;
  width: 100%;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  padding: 2.8rem 1.5rem 2rem;
}

.featured::before,
.featured::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 14px,
    transparent 14px 22px
  );
  background-size: 22px 4px;
  content: "";
  animation: dash-flow .7s linear infinite;
}

.featured::before {
  top: 0;
}

.featured::after {
  bottom: 0;
  animation-direction: reverse;
}

.section-title {
  margin: 0 0 2.1rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: .25em;
  text-align: center;
  text-transform: uppercase;
}

.featured-title-rule {
  position: relative;
  max-width: 1200px;
  height: 3px;
  overflow: hidden;
  margin: -0.75rem auto 2rem;
  background: var(--red);
}

.featured-title-rule::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, #ff9aaa, transparent);
  content: "";
  animation: underline-sweep 2.6s linear infinite;
}

.featured-grid {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.featured-main {
  grid-column: 1 / -1;
  height: clamp(300px, 43vw, 500px);
  border-radius: 6px;
}

.featured-small {
  height: clamp(185px, 23vw, 270px);
  border-radius: 6px;
}

.featured-tile {
  position: relative;
  z-index: 0;
  display: block;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: transform .24s ease, box-shadow .24s ease;
}

.featured-tile:hover,
.featured-tile:focus-visible {
  z-index: 2;
  transform: scale(1.025);
  box-shadow: 0 0 0 2px rgb(255 33 67 / 50%), 0 12px 32px rgb(255 33 67 / 25%);
}

.featured-tile:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.featured-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  object-fit: cover;
  pointer-events: none;
  transition: opacity .2s ease;
}

.featured-tile.is-playing .featured-video {
  opacity: 1;
}

.featured-tile .media-caption {
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .3rem;
  padding: clamp(1.1rem, 2.5vw, 2rem) 1.25rem 1.15rem;
  background: linear-gradient(180deg, transparent 18%, rgb(0 0 0 / 32%) 48%, rgb(0 0 0 / 91%) 100%);
  color: #fff;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  pointer-events: none;
}

.featured-title {
  max-width: 100%;
  font: 700 clamp(1.2rem, 2.4vw, 2rem)/1.15 var(--display);
  text-transform: uppercase;
}

.featured-description {
  max-width: 100%;
  overflow: hidden;
  font: 500 clamp(.82rem, 1.15vw, 1rem)/1.35 var(--body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-link {
  width: max-content;
  min-height: 52px;
  display: flex;
  margin: 1.5rem auto 0;
}

@keyframes dash-flow {
  to {
    background-position: 22px 0;
  }
}

@keyframes underline-sweep {
  to {
    left: 100%;
  }
}


/* What I Do cards */
.services-section {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(3rem, 5vw, 4rem);
}

.services-section .section-title {
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.8rem 3.5rem;
}

.service-card {
  position: relative;
  min-width: 0;
  min-height: 520px;
  padding: 2.4rem 1.75rem 2rem;
  border: 1px solid rgb(255 33 67 / 56%);
  border-radius: 14px;
  background: var(--panel);
  animation: service-card-glow 3s ease-in-out infinite;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover,
.service-card:focus-within {
  z-index: 1;
  transform: scale(1.045);
  border-color: #ff2143;
  animation-name: service-card-glow-hover;
  animation-duration: 1.2s;
  box-shadow: 0 0 0 2px rgb(255 33 67 / 48%), 0 0 34px 9px rgb(255 33 67 / 48%);
}

@keyframes service-card-glow {
  0%,
  100% {
    border-color: rgb(255 33 67 / 52%);
    box-shadow: 0 0 0 1px rgb(255 33 67 / 22%), 0 0 17px 2px rgb(255 33 67 / 21%);
  }

  50% {
    border-color: rgb(255 75 99 / 95%);
    box-shadow: 0 0 0 2px rgb(255 33 67 / 38%), 0 0 25px 5px rgb(255 33 67 / 34%);
  }
}

@keyframes service-card-glow-hover {
  0%,
  100% {
    border-color: #ff2143;
    box-shadow: 0 0 0 2px rgb(255 33 67 / 55%), 0 0 34px 9px rgb(255 33 67 / 52%);
  }

  50% {
    border-color: #ff8798;
    box-shadow: 0 0 0 3px rgb(255 33 67 / 72%), 0 0 48px 15px rgb(255 33 67 / 70%);
  }
}

.service-icon {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.3rem;
  object-fit: contain;
}

.service-card h3 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 700;
  text-align: center;
}

.service-card p,
.service-card li {
  font-size: 1rem;
  line-height: 1.35;
}

.service-card > p:not(.includes-label) {
  margin-bottom: 1.2rem;
}

.service-card .includes-label {
  margin-bottom: 0;
}

.service-card ul {
  margin: 0;
  padding-left: 1.35rem;
  list-style: disc;
}

@media (max-width: 700px) {
  .services-section {
    width: min(100% - 2rem, 540px);
    padding-top: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card {
    min-height: 0;
    padding: 1.8rem 1.4rem;
  }

  .service-icon {
    width: 128px;
    height: 128px;
  }

  .service-card h3 {
    margin-bottom: 1rem;
  }
}

.experience {
  margin-bottom: clamp(5.5rem, 9vw, 8rem);
  padding-top: clamp(3rem, 5vw, 4rem);
}

.experience > h2 {
  margin: 0 0 2rem;
  color: var(--white);
  font: 600 clamp(2rem, 3vw, 2.6rem) var(--display);
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-decoration-thickness: 3px;
  text-underline-offset: .28em;
}

.experience-list {
  width: min(1000px, calc(100% - 5rem));
  display: grid;
  gap: 2.1rem;
  margin-inline: auto;
}

.experience-card {
  padding: 1.7rem 1.75rem;
  border-radius: 13px;
  background: var(--panel);
}

.experience-card h3 {
  margin: 0 0 .6rem;
  font-size: 1.35rem;
}

.experience-card h3 a {
  text-decoration-color: var(--purple);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.experience-card p {
  margin: .65rem 0;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.45;
}

.experience-card .role {
  margin-top: 0;
}

.experience-card .tools {
  margin-top: 1rem;
  text-transform: uppercase;
}

.experience-card .button {
  width: max-content;
  display: flex;
  margin: 1.15rem auto 0;
}

/* About strip: keep the biography wide enough for readable copy. */
.about {
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(140px, .72fr)
    minmax(210px, 1.1fr)
    minmax(360px, 1.85fr)
    minmax(210px, 1.1fr)
    minmax(140px, .72fr);
  grid-auto-rows: minmax(380px, auto);
  background: var(--cyan);
  color: var(--black);
}

.about-label,
.about-photo,
.about-copy,
.goat-label {
  min-width: 0;
  width: 100%;
  height: 100%;
}

.about-label,
.goat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.goat-label {
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  text-align: center;
}

.about-label span,
.goat-label span {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
}

.about-label span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.goat-label span {
  writing-mode: vertical-rl;
}

.goat-label .also-known {
  margin: 0;
  font-size: clamp(.72rem, .95vw, .95rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  writing-mode: horizontal-tb;
}

.about-photo {
  min-height: 0;
}

.about-copy {
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .9rem;
  padding: clamp(1.5rem, 2.3vw, 2.5rem);
  background: var(--panel);
  color: white;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  line-height: 1.2;
  text-align: center;
}

.about-copy > p {
  width: min(100%, 68ch);
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.5;
}

.about-copy .button {
  width: max-content;
  display: flex;
  margin: .25rem auto 0;
}

/* Contact and footer */
.contact {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 6.5rem 1.5rem 7rem;
  background: radial-gradient(ellipse at 50% 0%, rgb(255 33 67 / 14%), transparent 72%);
  text-align: center;
}

.contact h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 400;
}

.contact p {
  margin: 0 0 1.8rem;
  color: var(--muted);
}

.contact .button {
  box-shadow:
    0 0 0 1px rgb(255 33 67 / 35%),
    0 0 24px 5px rgb(255 33 67 / 42%),
    0 0 48px 10px rgb(255 33 67 / 28%);
}

@media (max-width: 1100px) {
  .about {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
  }

  .about-label {
    grid-column: 1;
    grid-row: 1;
    min-height: clamp(180px, 32vw, 300px);
  }

  .about-photo:not(.about-photo-secondary) {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: clamp(180px, 32vw, 300px);
  }

  .about-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    padding: clamp(1.5rem, 3.5vw, 2.75rem);
    text-align: center;
  }

  .about-photo-secondary {
    grid-column: 1;
    grid-row: 3;
    height: auto;
    min-height: clamp(180px, 32vw, 300px);
  }

  .goat-label {
    grid-column: 2;
    grid-row: 3;
    min-height: clamp(180px, 32vw, 300px);
  }

  .about-label > span,
  .goat-label > span:not(.also-known) {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: clamp(1.4rem, 4vw, 2.1rem);
  }

  .goat-label .also-known {
    font-size: clamp(.75rem, 2vw, .95rem);
  }
}
@media (max-width: 800px) {
  html {
    scroll-padding-top: 72px;
  }

  .page-width {
    width: min(680px, calc(100% - 2rem));
  }

  .hero-art {
    width: 100%;
    height: clamp(460px, 56vw, 560px);
  }

  .featured {
    width: 100%;
    padding-block: 2.4rem 2rem;
  }

  .featured-grid {
    padding-inline: 0;
  }


  .experience-list {
    width: 100%;
  }

}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    min-height: clamp(520px, 70vh, 680px);
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
  }

  .hero-copy {
    width: auto;
    min-width: 0;
    margin: 0;
    transform: none;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 4.7vw, 3.4rem);
  }

  .hero-subtitle {
    font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  }

  .hero-description {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
  }

  .hero-art {
    width: 65vw;
    height: clamp(440px, 55vw, 620px);
  }
}

@media (min-width: 651px) and (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: var(--home-section-space-mobile);
    padding-left: 0;
  }

  .hero-art {
    order: 0;
    width: 100%;
    height: clamp(400px, 66vw, 520px);
    margin-bottom: 2rem;
  }

  .hero-copy {
    order: 1;
    width: min(40rem, calc(100% - 2rem));
    margin-inline: auto;
    padding-right: 0;
    transform: none;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(3rem, 6vw, 3.5rem);
  }

  .hero-actions {
    justify-content: center;
  }
}
@media (max-width: 650px) {
  .hero {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    margin-bottom: var(--home-section-space-mobile);
    padding-block: 0;
  }

  .hero-copy {
    order: 1;
    width: min(34rem, calc(100% - 2rem));
    margin-inline: auto;
    padding-right: 0;
    transform: none;
    text-align: center;
  }

  .hero-art {
    order: 0;
    width: 100%;
    height: clamp(300px, 75vw, 420px);
    margin-bottom: 2rem;
  }

  .hero-art::after {
    background:
      linear-gradient(
        0deg,
        var(--black) 0%,
        rgb(0 0 0 / 88%) 12%,
        rgb(0 0 0 / 42%) 27%,
        transparent 46%
      );
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-subtitle {
    font-size: 1.65rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .featured {
    margin-bottom: 2rem;
    padding: 3rem 1rem 2.5rem;
  }

  .section-title {
    margin-bottom: 1.4rem;
    font-size: 2rem;
    letter-spacing: .1em;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .featured-main {
    grid-column: auto;
    height: 250px;
  }

  .featured-small {
    height: 185px;
  }

  .experience {
    width: min(100% - 2rem, 640px);
    margin-inline: auto;
    margin-bottom: clamp(4.5rem, 12vw, 6rem);
    padding-top: clamp(2.5rem, 7vw, 3.5rem);
  }

  .experience > h2 {
    margin-bottom: 1.3rem;
    font-size: 1.9rem;
  }

  .experience-list {
    gap: 1.4rem;
  }

  .experience-card {
    padding: 1.35rem;
  }

  .experience-card h3 {
    font-size: 1.17rem;
  }

  .experience-card p {
    font-size: 1rem;
  }

  .about {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
  }

  .about-label {
    grid-column: 1;
    grid-row: 1;
    min-height: clamp(160px, 42vw, 220px);
  }

  .about-photo:not(.about-photo-secondary) {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: clamp(160px, 42vw, 220px);
  }

  .about-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    height: auto;
    padding: clamp(1.5rem, 6vw, 2rem);
  }

  .about-photo-secondary {
    grid-column: 1;
    grid-row: 3;
    height: auto;
    min-height: clamp(160px, 42vw, 220px);
  }

  .goat-label {
    grid-column: 2;
    grid-row: 3;
    min-height: clamp(160px, 42vw, 220px);
    padding: .8rem;
  }

  .about-label > span,
  .goat-label > span:not(.also-known) {
    writing-mode: initial;
    transform: none;
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  .about-copy h2 {
    font-size: 1.5rem;
  }

  .about-copy > p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .goat-label .also-known {
    font-size: clamp(.68rem, 3vw, .85rem);
  }

  .contact {
    isolation: isolate;
    overflow: hidden;
    padding: clamp(6rem, 16vw, 7.25rem) 1.5rem;
    background: radial-gradient(ellipse at 50% 0%, rgb(255 33 67 / 16%), transparent 70%);
  }

  .contact > * {
    position: relative;
    z-index: 1;
  }

  .contact h2 {
    max-width: 17ch;
    font-size: clamp(2.25rem, 9vw, 3rem);
    line-height: 1.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
