@font-face {
  font-family: "Impact Local";
  src: url("assets/fonts/Impact.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Times New Roman Local";
  src: url("assets/fonts/Times New Roman.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Times New Roman Local";
  src: url("assets/fonts/Times New Roman Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Times New Roman Local";
  src: url("assets/fonts/Times New Roman Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Times New Roman Local";
  src: url("assets/fonts/Times New Roman Bold Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #101010;
  --panel: #2c2c2c;
  --panel-active: #383838;
  --white: #f4f4f4;
  --accent: #5affbd;
  --sidebar-width: 488px;
  --page-edge: 12px;
  --project-gap: 12px;
  --serif: "Times New Roman Local", "Times New Roman", Times, serif;
  --display: "Impact Local", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --sans: Inter, Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

a,
button {
  color: inherit;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

button {
  font: inherit;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: grid;
  width: var(--sidebar-width);
  min-height: 680px;
  grid-template-rows: auto minmax(0, 1fr) 120px 17px;
  overflow: hidden;
  background: var(--black);
}

.sidebar__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait {
  width: 120px;
  height: 120px;
  margin-top: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.name-lockup {
  position: relative;
  width: 100%;
  margin-top: 11px;
  padding-top: 8px;
}

.name-lockup h1,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.83;
  text-transform: uppercase;
}

.name-lockup h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 90px;
  text-align: center;
}

.name-lockup__tag,
.project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 4px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: lowercase;
}

.project-tag.project-tag--wide {
  width: max-content;
  white-space: nowrap;
}

.name-lockup__tag {
  position: absolute;
  z-index: 2;
}

.name-lockup__tag--ai {
  top: 0;
  left: calc(50% - 105px);
}

.name-lockup__tag--graphic {
  top: 74px;
  left: calc(50% + 116px);
}

.name-lockup__tag--web {
  top: 149px;
  left: calc(50% - 127px);
}

.bio {
  width: min(384px, calc(100% - 64px));
  margin: 30px 0 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}

.bio-clients {
  width: min(384px, calc(100% - 64px));
  margin: 24px 0 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}

.language-switcher {
  display: flex;
  position: static;
  align-self: center;
  justify-self: center;
}

.language-switcher__button {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--panel-active);
  color: var(--black);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-switcher__button.is-active {
  background: #ffffff;
}

.language-switcher__button:focus-visible,
.social-link:focus-visible,
.go-up:focus-visible,
.contact__handle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.social-links {
  display: grid;
  position: static;
  width: auto;
  height: 120px;
  margin: 0 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-radius: 37px;
  background: var(--panel);
  color: rgba(244, 244, 244, 0.3);
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.social-link:hover {
  background: #363636;
  color: var(--accent);
}

.content {
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  padding: var(--page-edge) var(--page-edge) 0 0;
}

.project {
  display: block;
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.project:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.project-media > img,
.project-media > picture,
.project-media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
}

.project-media > img,
.project-media > picture > img {
  object-fit: cover;
}

.project-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  content: "";
  pointer-events: none;
}

.project-media--hero {
  height: 550px;
}

.project-media--warm {
  background: #f1f2f4;
}

.project-media--graphite {
  background: #565656;
}

.project-media--clay {
  background: #af8a62;
}

.project-media--brick {
  background: #a23a30;
}

.project-tag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 76px;
  height: 29px;
  padding: 3px 5px;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.project-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: calc((100% - 4px) / 3);
  max-width: 100%;
  height: 30px;
  padding: 4px 8px;
  background: var(--panel);
  color: #ffffff;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-split__hero .project-ticker {
  width: 50%;
}

.project-gallery-row {
  display: grid;
  grid-template-columns: 310px 310px minmax(0, 1fr);
  gap: 6px;
  height: 283px;
  margin-top: 6px;
}

.project-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 12px 10px 6px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.project-gallery-row .project-details {
  padding: 6px 14px 10px 10px;
}

.project-details p {
  margin: 0;
  font-family: var(--sans);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: inherit;
  line-height: 1.2;
}

.view-more {
  font-family: var(--serif);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 160ms ease;
}

.view-more:hover {
  color: var(--accent);
}

.view-more:active {
  color: var(--accent);
}

.project--split {
  display: grid;
  grid-template-columns: minmax(0, 624px) minmax(260px, 310px);
  grid-template-rows: 270px 269px;
  column-gap: 6px;
  row-gap: 12px;
  height: 551px;
  margin-top: 12px;
}

.project-split__hero {
  grid-row: 1 / 3;
}

.project--split .project-details {
  padding-top: 0;
  padding-right: 14px;
  padding-bottom: 9px;
  padding-left: 2px;
}

.project--split + .project--gallery {
  margin-top: 11px;
}

.project--gallery + .project--single {
  margin-top: 12px;
}

.project--single + .project--split {
  margin-top: 12px;
}

.project--single .project-media--hero {
  height: 551px;
}

.project-card-view-more {
  position: absolute;
  bottom: 9px;
  left: 12px;
  z-index: 2;
  color: #ffffff;
  font-size: 18px;
}

.poison-mobile-details {
  display: none;
}

.contact {
  position: relative;
  height: 291px;
  margin-top: 104px;
}

.contact h2 {
  display: flex;
  width: 299px;
  flex-direction: column;
  font-size: 94px;
}

.contact__copy {
  width: 237px;
  margin: 30px 0 0;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.contact__copy span {
  display: block;
  white-space: nowrap;
}

.go-up,
.contact__handle {
  position: absolute;
  right: 0;
  width: 237px;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: right;
  text-decoration: none;
}

.go-up {
  top: 0;
}

.contact__handle {
  top: 230px;
}

.go-up:hover,
.contact__handle:hover {
  color: var(--accent);
}

@media (min-width: 1221px) {
  .project-gallery-row {
    grid-template-columns:
      calc((100% - 10px) / 3) 6px
      calc((100% - 10px) / 3) 2px
      calc((100% - 4px) / 3);
    gap: 0;
  }

  .project-gallery-row > .project-media:nth-child(1) {
    grid-column: 1;
  }

  .project-gallery-row > .project-media:nth-child(2) {
    grid-column: 3;
  }

  .project-gallery-row > .project-details {
    grid-column: 5;
  }

  .project--split {
    grid-template-columns:
      calc((200% - 8px) / 3)
      calc((100% - 10px) / 3);
  }
}

@media (max-width: 1220px) and (min-width: 861px) {
  :root {
    --sidebar-width: 390px;
  }

  .project-ticker,
  .project-split__hero .project-ticker {
    width: 100%;
  }

  .project-media--hero,
  .project--single .project-media--hero {
    height: clamp(360px, 45vw, 550px);
  }

  .project-gallery-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .project-gallery-row .project-media {
    min-height: 230px;
  }

  .project-gallery-row .project-details {
    grid-column: 1 / -1;
    min-height: 210px;
    padding: 12px 0 0;
  }

  .project--split {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --page-edge: 8px;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-height: 720px;
  }

  .content {
    width: 100%;
    margin-left: 0;
    padding-left: var(--page-edge);
  }

  .project-ticker,
  .project-split__hero .project-ticker {
    width: 100%;
  }

  .project-media--hero,
  .project--single .project-media--hero {
    height: 56vw;
    min-height: 290px;
    max-height: 550px;
  }

  .project-gallery-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .project-gallery-row .project-media {
    aspect-ratio: 1.095 / 1;
  }

  .project-gallery-row .project-details {
    grid-column: 1 / -1;
    min-height: 240px;
    padding: 12px 2px 10px;
  }

  .project--split {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 560px) {
  .sidebar {
    display: grid;
    height: 842px;
    min-height: 842px;
    grid-template-rows: auto minmax(0, 1fr) 102.385px 76.615px;
  }

  .portrait {
    width: 120px;
    height: 120px;
    margin-top: 16px;
  }

  .name-lockup h1 {
    width: min(375px, 100%);
    margin-inline: auto;
    font-size: 90px;
  }

  .bio {
    width: min(332px, calc(100% - 32px));
    font-size: 18px;
  }

  .bio-clients {
    width: min(332px, calc(100% - 32px));
    margin-top: 24px;
    font-size: 18px;
  }

  .language-switcher {
    position: static;
    align-self: center;
    justify-self: center;
    transform: none;
  }

  .social-links {
    position: static;
    width: auto;
    height: 102.385px;
    margin: 0 9px;
    gap: 3.413px;
  }

  .social-link {
    height: 100%;
    border-radius: 31.5px;
    font-size: 18px;
  }

  .content {
    padding: 8px 9px 0;
  }

  .project-media--hero,
  .project--single .project-media--hero {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 744 / 436;
  }

  .project--moto > .project-media--hero {
    height: auto;
    aspect-ratio: 744 / 459;
  }

  .project-tag {
    top: 0;
  }

  #project-one .project-tag {
    top: 22px;
  }

  .project-ticker {
    right: 0;
    left: 0;
    width: auto;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
  }

  .project-gallery-row {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 12px;
    margin-top: 8px;
  }

  .project-gallery-row .project-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 364 / 336;
  }

  .project-gallery-row .project-details {
    grid-column: 1 / -1;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .project-details {
    justify-content: flex-start;
  }

  .project-details .view-more {
    align-self: flex-end;
    margin-top: 23px;
  }

  .project-details p {
    width: min(349px, 100%);
  }

  .project--split {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 56px;
  }

  .project-split__hero {
    height: auto;
    aspect-ratio: 742 / 656;
  }

  .project--uram .project-split__hero {
    height: auto;
    aspect-ratio: 746 / 648;
  }

  .project--split > .project-split__secondary {
    display: none;
  }

  .project--split .project-details {
    height: auto;
    min-height: 0;
    margin-top: 12px;
    padding: 0;
  }

  .project-card-view-more {
    display: none;
  }

  .poison-mobile-details {
    display: flex;
    height: auto;
    min-height: 0;
    margin-top: 12px;
    padding: 0;
  }

  .project--split + .project--gallery,
  .project--gallery + .project--single,
  .project--single + .project--split {
    margin-top: 56px;
  }

  .contact {
    height: 262px;
    margin-top: 104px;
  }

  .contact h2 {
    font-size: 94px;
  }

  .contact__copy {
    width: 237px;
    font-size: 18px;
  }

  .go-up,
  .contact__handle {
    right: 0;
    width: 237px;
    font-size: 18px;
  }

  .contact__handle {
    top: 226px;
    bottom: auto;
  }
}

@media (max-height: 820px) and (min-width: 861px) {
  .sidebar {
    grid-template-rows: auto minmax(0, 1fr) 96px 10px;
  }

  .social-links {
    height: 96px;
  }

  .social-link {
    height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
