@font-face {
  font-family: Inter;
  src: url("assets/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  src: url("assets/rubik-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #f6f3ee;
  --body: #d1cfcc;
  --edge: clamp(20px, 4.9vw, 84px);
  --type: clamp(1rem, 1.46vw, 1.25rem);
  --mast-height: clamp(72px, 8vw, 108px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: #070809; }
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  color: var(--paper);
  background: #070809;
  font: 400 var(--type)/1.5 Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: min(100%, clamp(1400px, 152vw, 2250px));
  background: url("assets/obsidian.webp") center / 100% 100% no-repeat;
  mask-image: linear-gradient(#000 80%, transparent);
  pointer-events: none;
}
.dust {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(118deg, #0005, #000a 31%, black 61%, #000a);
}
.dust::before, .dust::after {
  content: "";
  position: absolute;
  inset: -32px;
  background-image: url("assets/dust.png");
  background-repeat: repeat;
}
.dust::before { background-size: 397px; opacity: .12; }
.dust::after { background-size: 617px; background-position: 147px 209px; opacity: .18; }
h1, h2, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a {
  color: inherit;
  text-underline-offset: .24em;
  text-decoration-thickness: 1px;
  text-decoration-color: #817f7d;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.wrap { width: min(100%, 1680px); margin-inline: auto; padding-inline: var(--edge); }
.skip { position: absolute; z-index: 2; left: var(--edge); top: 0; transform: translateY(-120%); background: #111; padding: .6rem 1rem; }
.skip:focus { transform: translateY(0); }
.mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--mast-height);
  font-size: 1rem;
}
.mast nav { display: flex; gap: clamp(16px, 3.2vw, 48px); }
.mast a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.mast a:hover { text-decoration: underline; }
.home { justify-content: center; min-width: 44px; }
.home img { width: clamp(30px, 4.1vw, 46px); }
.contact { justify-self: end; }
.intro {
  display: grid;
  align-items: center;
  min-height: clamp(350px, 44vw, 690px);
  padding-bottom: clamp(16px, 3.2vw, 52px);
}
.identity { position: relative; }
.identity h1 {
  display: grid;
  grid-template-columns: 26% 1fr;
  gap: 2%;
  align-items: center;
}
.identity h1 img { width: 100%; }
.identity p {
  position: absolute;
  inset: 71% 0 auto 28%;
  text-align: center;
}
.identity p, .project-copy p {
  font: 400 clamp(1rem, 2.25vw, 2rem)/1.5 Inter, Arial, sans-serif;
  letter-spacing: -.035em;
}
#work { scroll-margin-top: 1rem; }
.project {
  position: relative;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
}
.project + .project { margin-block-start: clamp(32px, 5vw, 80px); }
.project-copy { position: relative; z-index: 1; padding-block: 2rem; }
.project-copy h2 {
  font-family: Rubik, Inter, Arial, sans-serif;
  font-size: clamp(3rem, 8.5vw, 8rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
}
.project-copy p { max-width: 29ch; margin: .9em 0 .65em; }
.project-copy a, .company-intro a { display: inline-block; padding-block: .35em; }
.project-copy a { font-size: clamp(1rem, 2.1vw, 1.25rem); font-weight: 600; }
.project-copy > * {
  transition: opacity .8s, transform 1s cubic-bezier(.16, 1, .3, 1);
}
.project-copy > :nth-child(2) { transition-delay: .08s; }
.project-copy > :nth-child(3) { transition-delay: .16s; }
.motion-ready .project:not(.is-visible) .project-copy > * { opacity: 0; transform: translateY(26px); }
.project-visual {
  position: relative;
  height: clamp(580px, 71vw, 1050px);
  margin-inline: -3% calc(-1 * var(--edge));
  overflow: clip;
  mask-image: linear-gradient(165deg, #000 53%, #000e 60%, #0009 69%, transparent 84%);
}
.device {
  position: absolute;
  width: 111%;
  aspect-ratio: 2 / 3;
  left: -6%;
  top: -1%;
  transform-origin: 50% 43%;
  transform: perspective(1600px);
  transition: opacity 1.2s, filter 1.2s;
}
.motion-ready .project:not(.is-visible) .device { opacity: 0; filter: blur(6px); }
.device-hardware { position: absolute; inset: 0; width: 100%; }
.device-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border-radius: 14% / 6.5%;
  transform-origin: 0 0;
  visibility: hidden;
}
.device.is-fitted .device-screen { visibility: visible; }
.device-screen picture { display: block; width: 100%; height: 100%; }
.device-screen img { width: 100%; height: 100%; }
.screen-glare {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 36%, #d9eaff09 45%, #eaf1ff24 50%, #d9eaff05 54%, transparent 63%);
  transform: translateX(-120%);
}
@keyframes glass-sweep {
  0%, 64% { transform: translateX(-120%); opacity: 0; }
  68% { opacity: 1; }
  88%, 100% { transform: translateX(120%); opacity: 0; }
}
@keyframes dust-far {
  from { transform: translate(-6px, 9px); }
  to   { transform: translate(7px, -10px); }
}
@keyframes dust-near {
  from { transform: translate(12px, 18px); }
  to   { transform: translate(-9px, -16px); }
}
.upcoming {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(260px, 34vw, 440px);
  padding-block: clamp(64px, 8vw, 112px);
  text-align: center;
  scroll-margin-top: 20svh;
}
.upcoming::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: url("assets/obsidian.webp") center 75% / cover;
  mask-image: radial-gradient(ellipse closest-side, #0009, transparent);
  opacity: .24;
}
.upcoming p {
  max-width: 48ch;
  color: var(--paper);
  font-size: clamp(1rem, 2.7vw, 1.75rem);
  letter-spacing: -.01em;
  text-wrap: balance;
  transition: opacity .9s, transform 1.1s cubic-bezier(.16, 1, .3, 1), filter 1.1s;
}
.motion-ready .upcoming:not(.is-visible) p {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(7px);
}
@keyframes upcoming-light {
  0%, 100% { opacity: .18; }
  50% { opacity: .36; }
}
@media (prefers-reduced-motion: no-preference) {
  .project.is-active .device { will-change: transform; }
  .project.is-active .screen-glare { animation: glass-sweep 12s -8s infinite; }
  .dust::before { animation: dust-far 28s ease-in-out -10s infinite alternate; }
  .dust::after { animation: dust-near 18s ease-in-out -7s infinite alternate; }
  .upcoming.is-active::before { animation: upcoming-light 7s ease-in-out infinite; }
}
.page-hidden .project .screen-glare,
.page-hidden .dust::before,
.page-hidden .dust::after,
.page-hidden .upcoming::before { animation-play-state: paused; }
.company {
  padding-top: clamp(40px, 5vw, 84px);
  padding-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: clamp(64px, 7vw, 100px) 3%;
  font-size: 1rem;
  color: var(--body);
}
.company-intro {
  display: grid;
  grid-template-columns: clamp(48px, 6vw, 64px) minmax(0, 1fr);
  column-gap: 14px;
  align-content: start;
}
.company-mark { grid-column: 1; grid-row: 1 / 4; width: 100%; }
.company-intro h2, .company-intro p, .company-intro a { grid-column: 2; }
.company h2 {
  padding-top: .2em;
  font-family: Rubik, Inter, Arial, sans-serif;
  font-size: clamp(1.375rem, 2.9vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
  color: var(--paper);
}
.company-intro p { margin-block: .65em .2em; }
.company-intro a { justify-self: start; color: var(--paper); }
.company dl { display: grid; grid-template-columns: .9fr 1.3fr; gap: 2em; }
.company dt { color: var(--paper); font-weight: 600; }
.company dd { margin-top: .4em; max-width: 29ch; }
.colophon { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
@media (min-width: 701px) {
  .intro { min-height: calc(100svh - var(--mast-height)); }
  #work { padding-block-start: clamp(32px, 4svh, 64px); }
}
@media (max-width: 700px) {
  .mast { font-size: .875rem; }
  .intro { min-height: clamp(240px, 45svh, 390px); padding-bottom: 8px; }
  .identity p { inset: auto 0; margin-top: 1rem; }
  .identity p, .project-copy p { font-size: 1rem; }
  .project { grid-template-columns: 1fr; }
  .project-copy { padding: 2rem 0 0; }
  .project-copy p { max-width: 36ch; margin: .9em 0 .6em; }
  .project-visual { height: clamp(510px, 132vw, 700px); margin: 0 calc(-1 * var(--edge)); }
  .device { width: min(107%, 560px); left: 50%; margin-left: max(-53.5%, -280px); }
  .company { grid-template-columns: 1fr; gap: 1.8rem; }
  .company dl { grid-template-columns: 1fr 1.1fr; gap: 1em; }
}
@media (prefers-reduced-motion: reduce) {
  .project-copy > *, .upcoming p { transition: none; }
  .motion-ready .project:not(.is-visible) .project-copy > * { opacity: 1; transform: none; }
  .device { will-change: auto; }
  .motion-ready .project:not(.is-visible) .device { opacity: 1; filter: none; }
  .motion-ready .upcoming:not(.is-visible) p { opacity: 1; transform: none; filter: none; }
}
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
