/* Edit these tokens to change the whole portfolio. */
:root {
  --paper: #f4f4f4;
  --ink: #101010;
  --accent: #ff3726;
  --line: #c9c9c9;
  --pad: clamp(20px, 4vw, 72px);
  --display: Arial, Helvetica, sans-serif;
  --body: Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
::selection {
  background: var(--accent);
  color: white;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  border: 0;
}
figure {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
}
a,
button {
  touch-action: manipulation;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  background: white;
  color: black;
  padding: 12px;
  z-index: 200;
}
.skip-link:focus {
  top: 15px;
}
.site-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  font-weight: 900;
  letter-spacing: -0.065em;
  font-size: 28px;
  line-height: 1;
}
.brand i {
  color: var(--accent);
  font-style: normal;
}
.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
}
.site-nav a {
  font-size: 14px;
}
.site-nav a:after {
  content: "";
  display: block;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.site-nav a:hover:after,
.site-nav a[aria-current="page"]:after {
  transform: scaleX(1);
}
.nav-index {
  color: #777;
  font-size: 12px;
  margin-right: 5px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 14px;
  background: transparent;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.4s var(--ease);
}
.pill:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
}
.pill.light:hover {
  background: white;
  color: black;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 42px;
}
.section-head span:last-child {
  color: #666;
}
.display {
  font-size: clamp(54px, 9vw, 160px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.075em;
}
.reveal {
  opacity: 1;
  transform: none;
}
.js-motion .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.js-motion .reveal.visible {
  opacity: 1;
  transform: none;
}
.cursor {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  left: 0;
  top: 0;
  opacity: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: white;
  transition:
    width 0.25s,
    height 0.25s,
    opacity 0.2s;
}
.cursor.active {
  width: 76px;
  height: 76px;
}
.page-wipe {
  position: fixed;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  z-index: 110;
  pointer-events: none;
  transition: transform 0.45s var(--ease);
}
.page-wipe.leaving {
  transform: translateY(0);
}
.lightbox {
  border: 0;
  background: #101010;
  color: white;
  padding: 0;
  width: 94vw;
  max-width: 1500px;
  max-height: 94vh;
}
.lightbox::backdrop {
  background: #000d;
}
.lightbox img {
  max-height: 82vh;
  margin: auto;
  object-fit: contain;
}
.lightbox header {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lightbox button {
  background: transparent;
  color: white;
  font-size: 16px;
  padding: 10px;
}
.lightbox figcaption {
  padding: 10px 20px;
  font-size: 14px;
}
.image-open {
  padding: 0;
  background: transparent;
  display: block;
  width: 100%;
  overflow: hidden;
}
.image-open img {
  width: 100%;
  transition: transform 0.9s var(--ease);
}
.image-open:hover img {
  transform: scale(1.025);
}

[hidden] {
  display: none !important;
}
.brand img {
  width: 140px;
  max-height: 48px;
  object-fit: contain;
  object-position: left;
}
@media (max-width: 600px) {
  .brand img {
    width: 100px;
    max-height: 32px;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .discipline-tiles .discipline-tile {
    transition:
      translate 0s,
      rotate 0s;
    transform-origin: 50% 65%;
  }
}
