@font-face {
  font-family:Maname;
  src:url('assets/maname-regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap
}

:root {
  --teal:#31969b;
  --cyan:#28ffdb;
  --gray:#d9d9d9;
  --muted:#8c8c8c;
  color:#000;
  background:#f5f5f5;
  font-family:Maname,Georgia,serif;
  font-synthesis:none
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

a {
  color:inherit;
  text-decoration:none
}

p,h1,h2 {
  margin:0;
  font-weight:400
}

button,input,video {
  font:inherit
}

img {
  display:block
}

a:focus,[tabindex]:focus {
  outline:none
}

/* Pointer clicks and restored focus after Back must not leave a selection box.
   Keep the focus indicator for visitors navigating with a keyboard. */
:root[data-input-modality="keyboard"] :is(a,[tabindex]):focus-visible {
  outline:2px solid var(--teal);
  outline-offset:4px
}

.site {
  position:relative;
  width:100%;
  max-width:1421px;
  margin-inline:auto;
  background:white;
  container-type:inline-size;
  --scale:1;
  overflow:clip
}

.placed {
  position:absolute;
  left:calc(var(--x)*100cqw/1421);
  top:calc(var(--y)*100cqw/1421);
  width:calc(var(--w)*100cqw/1421);
  height:calc(var(--h)*100cqw/1421)
}

.vector {
  display:block;
  pointer-events:none
}

.vector img {
  max-width:none;
  transform:scale(var(--scale));
  transform-origin:top left
}

.vector--center img {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(var(--scale)) rotate(var(--rotation));
  transform-origin:center
}

.hero {
  position:relative;
  height:calc(497*100cqw/1421)
}

.hero-lines {
  z-index:0
}

.portfolio-lettering {
  position:absolute;
  inset:0;
  pointer-events:none
}

.page-header {
  position:absolute;
  inset:0 0 auto;
  height:calc(109*100cqw/1421);
  z-index:5;
  font-size:calc(18*100cqw/1421)
}

.header-about {
  position:absolute;
  left:calc(39*100cqw/1421);
  top:calc(12*100cqw/1421);
  line-height:calc(18*100cqw/1421)
}

.header-marker {
  position:absolute;
  left:calc(-15*100cqw/1421);
  top:calc(18*100cqw/1421);
  width:calc(7*100cqw/1421);
  height:calc(30*100cqw/1421);
  background:var(--teal)
}

.header-about .header-marker {
  left:calc(-16*100cqw/1421);
  top:calc(6*100cqw/1421)
}

.header-contact,.header-skills {
  position:absolute;
  top:0
}

.header-contact {
  left:calc(926*100cqw/1421)
}

.header-skills {
  left:calc(1220*100cqw/1421)
}

.page-header p {
  line-height:calc(36*100cqw/1421)
}

.header-contact>div,.header-skills>div {
  position:absolute;
  top:calc(29*100cqw/1421);
  white-space:nowrap;
  line-height:calc(20.8*100cqw/1421);
  color:var(--muted)
}

.project-row {
  --title-width:calc(353*100cqw/1421);
  --fade-width:calc(120*100cqw/1421);
  position:relative;
  height:calc(296*100cqw/1421);
  overflow:visible;
  isolation:isolate;
  touch-action:pan-y;
  cursor:grab;
  outline-offset:-3px;
  user-select:none;
  -webkit-user-select:none
}

.project-row.is-dragging {
  cursor:grabbing
}

.project-row--side {
  margin-top:calc(77*100cqw/1421)
}

.project-viewport {
  position:absolute;
  inset:-12px 0;
  overflow:clip;
  /* Fade the artwork itself as it approaches the stationary title.
     The mask stays fixed; only the track inside it moves. */
  --fade-direction:to right;
  /* Nearly opaque even at the cover edge: a subtle, eased fade rather than
     a visible gray band. The transparent part sits behind the solid title. */
  --artwork-mask:linear-gradient(var(--fade-direction), transparent calc(var(--title-width) - 1px), rgb(0 0 0 / .90) var(--title-width), rgb(0 0 0 / .97) calc(var(--title-width) + var(--fade-width)*.35), rgb(0 0 0 / .995) calc(var(--title-width) + var(--fade-width)*.7), #000 calc(var(--title-width) + var(--fade-width)));
  -webkit-mask-image:var(--artwork-mask);
  mask-image:var(--artwork-mask)
}

.project-row--side .project-viewport {
  --fade-direction:to left
}

.project-track {
  position:absolute;
  inset:12px 0;
  will-change:transform
}

.project-card {
  display:block;
  position:absolute;
  top:0;
  left:calc((398 + var(--index)*398)*100cqw/1421);
  width:calc(353*100cqw/1421);
  height:100%;
  background:var(--gray);
  border:1px solid var(--teal);
  overflow:hidden;
  cursor:inherit;
  -webkit-user-drag:none;
  transform:scale(1);
  transform-origin:center;
  transition:transform 320ms cubic-bezier(.2,.75,.25,1)
}

@media (hover:hover) and (pointer:fine) {
  .project-row:not(.is-dragging) .project-card:hover {
    transform:scale(1.025);
    z-index:1
  }
}

.project-row--side .project-card {
  left:calc(var(--index)*395*100cqw/1421);
  border:0
}

.project-card img,.project-card video,.project-card picture {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none
}

.project-card--1 img {
  width:106.8%;
  height:100.22%;
  left:-3.5%;
  top:-.11%;
  max-width:none
}

.project-card--2 img {
  width:126.49%;
  height:100.34%;
  left:-12.25%;
  top:-.17%;
  max-width:none
}

.project-heading {
  position:absolute;
  z-index:2;
  inset:0 auto 0 0;
  width:calc(353*100cqw/1421);
  background:var(--cyan);
  pointer-events:none
}

.project-row--side .project-heading {
  left:auto;
  right:0
}

.about-zone {
  position:relative;
  height:calc(652*100cqw/1421);
  scroll-margin-top:20px
}

.media-slot,.gallery-slot {
  background:var(--gray);
  overflow:hidden
}

.media-slot img,.media-slot video,.media-slot picture,.gallery-slot img,.gallery-slot video,.gallery-slot picture {
  width:100%;
  height:100%;
  object-fit:cover
}

.about-copy {
  font-size:calc(18*100cqw/1421);
  line-height:calc(26.8*100cqw/1421);
  color:var(--muted)
}

.about-copy p+p {
  margin-top:calc(4*100cqw/1421)
}

.about-gallery {
  position:relative;
  display:grid;
  grid-template-columns:328fr 329fr 329fr 329fr;
  grid-template-rows:304fr 299fr;
  width:calc(1315*100cqw/1421);
  height:calc(603*100cqw/1421);
  margin-inline:auto
}

.gallery-slot--1 {
  grid-column:1;
  grid-row:1/3
}

.gallery-slot--2 {
  grid-column:2;
  grid-row:2
}

.gallery-slot--3 {
  grid-column:2;
  grid-row:1
}

.gallery-slot--4 {
  grid-column:3;
  grid-row:1/3
}

.gallery-slot--5 {
  grid-column:4;
  grid-row:1/3
}

.contact-zone {
  position:relative;
  margin-top:calc(133*100cqw/1421);
  height:calc(152*100cqw/1421)
}

.contact-email {
  font-size:calc(28*100cqw/1421);
  line-height:normal;
  color:var(--muted);
  white-space:nowrap
}

.contact-email-label .vector,a.contact-linkedin .vector {
  pointer-events:auto
}

.site-footer {
  position:relative;
  height:calc(397*100cqw/1421);
  background:var(--teal);
  color:white
}

.footer-name {
  font-size:calc(46*100cqw/1421);
  line-height:normal
}

.footer-photo {
  overflow:hidden
}

.footer-photo img {
  position:absolute;
  width:124.08%;
  height:142.32%;
  left:-11.31%;
  top:-25.66%;
  object-fit:fill
}

.footer-credit,.footer-reach {
  font-size:calc(18*100cqw/1421);
  line-height:normal;
  white-space:nowrap;
  text-align:right
}

.detail-page {
  position:relative;
  min-height:calc(2884*100cqw/1421)
}

.back-link {
  position:absolute;
  left:calc(676*100cqw/1421);
  top:calc(14*100cqw/1421);
  font-size:calc(24*100cqw/1421);
  line-height:calc(28.8*100cqw/1421)
}

.back-link span,.info-label span {
  color:var(--teal)
}

.info-label {
  font-size:calc(24*100cqw/1421);
  line-height:calc(28.8*100cqw/1421);
  white-space:nowrap
}

.book-copy {
  font-size:calc(18*100cqw/1421);
  line-height:calc(26.8*100cqw/1421);
  color:var(--muted)
}

.book-star img {
  transform:scale(var(--scale)) scaleX(-1);
  transform-origin:center
}

.book-star {
  display:grid;
  place-items:center
}

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

/* Mobile has no supplied Figma frame: preserve content and artwork, while giving
text a readable size and the six windows room to swipe. Desktop is exact. */
@media(max-width:900px) {
  .page-header {
    position:relative;
    height:112px;
    font-size:12px;
    display:grid;
    grid-template-columns:1fr 1.4fr 1.1fr;
    gap:14px;
    padding:14px 18px
  }

  .header-about,.header-contact,.header-skills {
    position:relative;
    left:auto;
    top:auto;
    line-height:15px
  }

  .header-about .header-marker,.header-marker {
    left:-8px;
    top:4px;
    width:3px;
    height:20px
  }

  .page-header p {
    line-height:18px
  }

  .header-contact>div,.header-skills>div {
    position:static;
    font-size:10px;
    line-height:13px;
    white-space:normal
  }

  .hero {
    height:calc(112px + 35cqw)
  }

  .hero .hero-lines {
    top:calc(112px + 4.1cqw)
  }

  .hero h1 .placed,.portfolio-lettering .placed {
    top:calc(112px + var(--y)*100cqw/1421)
  }

  .project-row {
    --title-width:27cqw;
    --fade-width:44px;
    height:54.5cqw
  }

  .project-row--side {
    margin-top:36px
  }

  .project-card {
    left:calc(30cqw + var(--index)*69cqw);
    width:65cqw
  }

  .project-row--side .project-card {
    left:calc(var(--index)*69cqw)
  }

  .project-heading {
    width:27cqw
  }

  .project-heading .vector {
    left:calc((27cqw - 97.6px)/2);
    top:calc(50% - 6px);
    width:97.6px;
    height:12px
  }

  .project-heading .vector img {
    transform:scale(.4)
  }

  .project-row--side .project-heading .vector {
    left:calc((27cqw - 86.85px)/2);
    top:calc(50% - 18px);
    width:86.85px;
    height:36px
  }

  .project-row--side .project-heading .vector img {
    transform:scale(.45)
  }

  .about-zone {
    height:auto;
    padding:88px 22px 90px;
    display:grid;
    grid-template-columns:25% 1fr;
    gap:28px 24px;
    align-items:start
  }

  .about-divider {
    top:30px
  }

  .about-portrait {
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    aspect-ratio:249/306;
    grid-column:1;
    grid-row:1/3
  }

  .about-zone h2 {
    grid-column:2;
    grid-row:1;
    margin:0
  }

  .about-zone h2 .vector {
    position:relative;
    inset:auto;
    width:100%;
    height:28px
  }

  .about-zone h2 .vector img {
    transform:scale(.8)
  }

  .about-copy {
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    grid-column:2;
    font-size:14px;
    line-height:20px
  }

  .about-copy p+p {
    margin-top:8px
  }

  .about-gallery {
    width:92cqw;
    height:70cqw
  }

  .contact-zone {
    margin-top:60px;
    height:114px
  }

  .contact-email-label .vector {
    top:6px;
    left:5cqw
  }

  .contact-email {
    top:2px;
    left:27cqw;
    width:auto;
    height:auto;
    font-size:16px
  }

  .contact-linkedin .vector {
    top:48px;
    left:5cqw
  }

  .contact-linkedin .vector+ .vector {
    left:calc(5cqw + 120px);
    top:42px
  }

  .contact-zone .vector img {
    transform:scale(.52)
  }

  .site-footer {
    height:260px
  }

  .footer-name {
    top:12px;
    left:5cqw;
    font-size:26px;
    width:auto;
    height:auto
  }

  .footer-photo {
    top:85px;
    left:5cqw;
    width:38cqw;
    height:25cqw
  }

  .footer-credit,.footer-reach {
    left:5cqw;
    top:auto;
    bottom:16px;
    width:90cqw;
    height:auto;
    font-size:11px
  }

  .footer-reach {
    bottom:32px
  }

  .detail-page {
    min-height:100vh
  }

  .detail-page--sample {
    min-height:203cqw
  }

  .back-link {
    left:18px;
    top:82px;
    font-size:17px;
    line-height:20px
  }

  .detail-page--book {
    display:flex;
    flex-direction:column;
    padding-bottom:180px
  }

  .book-star {
    left:17cqw;
    top:128px
  }

  .info-label--first {
    position:relative;
    inset:auto;
    width:auto;
    height:auto;
    margin:35px 6cqw 20px;
    font-size:20px;
    line-height:24px
  }

  .book-cover {
    position:relative;
    inset:auto;
    order:1;
    width:60cqw;
    height:80cqw;
    margin:0 6cqw 30px auto
  }

  .book-copy--first {
    position:relative;
    inset:auto;
    order:2;
    width:88cqw;
    height:auto;
    margin:0 6cqw 38px;
    font-size:15px;
    line-height:22px
  }

  .book-spreads {
    order:3;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px 12px;
    margin:0 6cqw 60px
  }

  .book-spread {
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    aspect-ratio:240/189
  }

  .book-film {
    position:relative;
    inset:auto;
    order:4;
    width:88cqw;
    height:auto;
    aspect-ratio:811/426;
    margin:0 6cqw 28px
  }

  .info-label--second {
    position:relative;
    inset:auto;
    order:5;
    width:auto;
    height:auto;
    margin:0 6cqw 20px;
    font-size:20px;
    line-height:24px
  }

  .book-copy--second {
    position:relative;
    inset:auto;
    order:6;
    width:88cqw;
    height:auto;
    margin:0 6cqw;
    font-size:15px;
    line-height:22px
  }

}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior:auto!important;
    transition:none!important
  }

  .project-track {
    will-change:auto
  }

}

